Use this function to load and output a bitmap to a graphical LCD. The function demands the following parameters:
Parameter 1 -> path and filename
Parameter 2 -> position x of bitmap on lcd screen
Parameter 3 -> position y of bitmap on lcd screen
Parameter 4 -> offset x of bitmap reading
Parameter 5 -> offset y of bitmap reading
Parameter 6 -> width of bitmap
Parameter 7 -> height of bitmap
Parameter 8 -> bitmap mode (0=normal, 1=inverted)
Parameter 9 -> draw mode
The path assigned to parameter 1 used a relative path first (relative to the script directory). If the file isnt found in the relative directory the application use it as a absolute path.
Parameter 9 means in what kind of logic bitwise operation the bitmap is written to lcd. You can assign the following values to parameter 9:
NONE ->
Bitmap is written to memory the unprocessed
OR ->
Bitmap is written to memory using bitwise or operation
AND ->
Bitmap is written to memory using bitwise and operation
XOR ->
Bitmap is written to memory using bitwise xor operation
MASK_CLEAR ->
A pixel is cleared in memory if bitmap pixel is black
MASK_SET ->
A pixel is set in memory if bitmap pixel is black
MASK_INVERT ->
A pixel is inverted in memory if bitmap pixel is black
Example:
%LCD.LoadBitmap(lcd.bmp,0,0,0,0,10,10,0,OR)
This function call loads the bitmap lcd.bmp of size 10x10 and displays it on lcd at position (0,0). During the operation the function uses the logical bitwise operation to write the bitmap to lcd.