Syntax
int ShowJPG_File(
int x_offs,
int y_offs,
unsigned short mode,
char *filename
);
Parameters
- x_offs
-
[in] The horizontal start position of the picture.
- y_offs
-
[in] The vertical start position of the picture.
- mode
-
[in] This can be:
Value Description WRITE_TO_SCREEN The pixels in the supplied buffer are simply drawn on the screen.
The buffer holds 3 bytes per pixel, the LSB is the value for red, the MSB for blue.TRANSPARENT Same as WRITE_TO_SCREEN, with one important difference.
When a pixel is completely black, it is not written, so then the original pixel is still shown. - filename
-
[in] Specify the JPG file name.
Return value
Returns the success (OK) or failure (ERROR) of the function.
Remarks
This function uses the dot coordinates of the screen for drawing.
The values that can be set are as follows.
X (Left and Right): 0 ~ (DISP_WIDTH -1)
Y (Up and Down): 0 ~ (DISP_HEIGHT --1)
When the status bar is displayed, the Y coordinate values that can be set are as follows.
Y (Up and Down)): 0 〜 (DISP_HEIGHT - 17)
The values that can be set are as follows.
X (Left and Right): 0 ~ (DISP_WIDTH -1)
Y (Up and Down): 0 ~ (DISP_HEIGHT --1)
When the status bar is displayed, the Y coordinate values that can be set are as follows.
Y (Up and Down)): 0 〜 (DISP_HEIGHT - 17)
Value | Description |
---|---|
DISP_WIDTH | 128 pixel |
DISP_HEIGHT | 160 pixel |
Requirements
Header file:
lib.hLibrary file:
libSTARTUPOPH5000.a
Last updated: 2020/10/02