CALL "W$BITMAP" USING opCode parameters GIVING bitmapHandle |
opCode | Function to be executed. Valid values, defined in isgui.def, are: | |
Destroy an image and releases the memory. | ||
Load an image into memory and then displays it on the screen. | ||
Load an image into memory. The image can then be shown on the GUI or used in print jobs. | ||
Load an image from the client machine into memory. The image can then be shown on the GUI or used in client-side print jobs. | ||
Generate an image from a string represented with a specific font. | ||
parameters | Parameters depend on the opcode. |
working-storage section. copy "isgui.def". 77 h-bitmap pic s9(9) comp-4. screen section. 01 Mask. 03 Bmp1 bitmap line 2 col 2 lines 10 cells size 21 cells . 03 Ef1 entry-field read-only line 13 col 2 size 15 cells . procedure division. main. call "w$bitmap" using wbitmap-load, "images/img.png" giving h-bitmap if h-bitmap < 0 display message "W$BITMAP Error: " h-bitmap else modify Bmp1 bitmap-handle h-bitmap end-if. ... |
working-storage section. copy "isgui.def". copy "isfonts.def". 77 arial-font handle of font. 77 bmp-question pic s9(9) comp-4. 77 rgb-orange pic s9(9) value -16737792. procedure division. MAIN. *load the Arial font initialize wfont-data. move "Arial" to wfont-name. move 10 to wfont-size. call "W$FONT" using wfont-get-font arial-font wfont-data. *get the question mark symbol call "W$BITMAP" using wbitmap-load-symbol-font arial-font, "?" 16 |I want a 16x16 icon rgb-orange giving bmp-question. |