C Language Development Kit/Functions/ShowPicture
From OptiWiki
< C Language Development Kit | Functions(Redirected from C Language Development Kit/Functions/Showpicture)
| Description | Places a bitmap on the screen. | ||||||||||||||||||||||||
| Syntax | void showpicture(int x, int y, const char * ptr); | ||||||||||||||||||||||||
| Arguments | The screen coordinates of the upper left corner of the picture.
int x, int y The pointer to the user bitmap. This user bitmap has a slightly modified standard Windows BMP format.
const char * ptr Use the bitmap converter program BMPTOH.EXE to convert a black and white Windows .BMP file to a .H file, that can be included in a C application. | ||||||||||||||||||||||||
| Returns | None | ||||||||||||||||||||||||
| Remarks | The maximum size of the picture depends on the handheld terminal's display size.
See the table below for the size of the display for the various terminals. Note that the coordinates of the upper left corner of the display are (0,0), the coordinates of the lower right corner are also shown in the table below:
| ||||||||||||||||||||||||
| Example | // Create a black and white (monochrome) picture with MS Paint (windows application) // and save it as EXAMPLE.BMP file (modified Windows bitmap). // // Next, run the BMP to H converter BMPTOH.EXE to create a file called example.h // (Open the bitmap, select the display size, and select the 'save as' option // to convert the file) // // Now we have an include file that contains the data of the modified Windows bitmap. // An example of an application that shows the picture is shown below: #include "lib.h" #include <"example.h"> void main( void ) { showpicture( 0, 0, _example); while( 1 ) idle(); } |
