CALL "W$BITMAP" USING WBITMAP-DISPLAY name row column flags GIVING bitmapHandle |
WBITMAP-DISPLAY | Constant | ||
name | PIC X(n) | Specifies the name of the file containing the image to be displayed. Unless the file has been included in the program class file through the COPY RESOURCE statement, the framework will look for the file on disk. During the search on disk, if name specifies relative pathname, the framework will resolve the relative pathname in the following locations, in order: 1. the current working directory 2. any jar and directory listed in the Classpath 3. the same jar or directory where the program class file was loaded from. | |
row | any numeric data item or numeric literal | Specifies the row, measured in window's cells, where the upper-left image corner is positioned. Decimal values are allowed. | |
column | any numeric data item or numeric literal | Specifies the column, measured in window's cells, where the upper-left image corner is positioned. Decimal values are allowed. | |
flags | any numeric data item or numeric literal | Its value affects the way the image is displayed. At present it is possible to assign to it the following symbolic value only: | |
WBITMAP-NO-FILL | The screen cells occupied by the image are not filled with the window's background color. |
> 0 | Receives the handle to the bitmap |
-1 | Error: file not found or not readable |
-2 | Error: out of memory loading the bitmap |
-3 | Error: not a valid bitmap |
-4 | Error: format not supported |