BMP Bitmap maker
Cette page a été mise à jour le
16 septembre 2009.
last version : How to upload to my 400
CHGPFM FILE(JPLTOOLS) MBR(BMP ) SRCTYPE(RPGLE ) EXPDATE(*NONE) SHARE(*NO) TEXT('make a BMP file ')
CRTRPGMOD MODULE(BMP) SRCFILE(JPLTOOLS) OPTION(*NODEBUGIO *SRCSTMT *SHOWCPY *SECLVL *EXPDDS) DBGVIEW(*ALL) REPLACE(*YES) TGTRLS(V5R3M0) ENBPFRCO(*FULL)
CRTPGM PGM(BMP) BNDDIR(QC2LE JPLTOOLS) ACTGRP(JPLTOOLS) OPTION(*DUPPROC) TGTRLS(V5R3M0)
This tool shows how to make a bitmap with a RPG program. I have implemented most usefull tools
The attached RPG source program produce this picture :
that is not pretty but illustrate the power of the tool.
What to do with this tool ? I don't know. There is something wrong in the 400 : there is no API to work with fonts. So I have not succed to insert text into my pictures. There are tools to do this into Java, but it is an other story. The tool exists in the 400, it is embbedded into the api QwpzHostPrintTransform that is able to convert a spool into a TIFF picture. I also had a look to QimgCvtImg, but its target is to convert some picture formats to Postscript.
The source code is provided as an open source tool under the GNU General Public License, version 2. In summary, this license specifies:
By clicking the download link you acknowledge and agree to the terms of the license.
Download the (zipped) SAVF containing the JPLTOOLS : the source file, the message file, the bnddir