Skip to content

lcd.drawPixmap

Draws a bitmap file stored on the SD card at (x, y).

Syntax

lcd.drawPixmap( x, y, name )

Parameters

NameReqTypeDescription
xtrueintegertop coordinate
ytrueintegerleft coordinate
nametruestringfull path to a bitmap on the SD card, e.g. "/IMAGES/test.bmp"

Returns

none

Notes

Info

Maximum image size is [LCD_W / 2] x [LCD_H] pixels.

Info

If you draw the same image repeatedly, prefer loading it once with Bitmap.open and then drawing it with lcd.drawBitmap.

Available on

API status

EdgeTX versionAction
2.0.0Introduced

Examples

Example 1

-- draw bitmap file stored on the SD card
lcd.drawPixmap(10, 10, "/IMAGES/test.bmp")

Example 2

-- draw at the top-left corner
lcd.drawPixmap(0, 0, "/IMAGES/test.bmp")