arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

lcd.drawBitmap

Displays prevoiusly loaded bitmap at (x,y) and optionally scales it.

hashtag
Syntax

hashtag
lcd.drawBitmap( bitmap, x, y [, scale] )

hashtag
Parameters

Name
Req
Type
Description

hashtag
Returns

none

hashtag
Notes

circle-info

Omitting scale draws image in 1:1 scale and is faster than specifying 100 for scale parameter.

hashtag
Available on

hashtag
API status

EdgeTX version
Action

hashtag
Examples

hashtag
Related topics

top coordinate

y

integer

left coordinate

scale

integer (0-100)

scale in percent ie. 50 divides size by two, 100 displays bitmap in original size, 200 doubles size.

bitmap

bitmapPointer

stored in variable pointer to a bitmap previously opened with Bitmap.open

x

2.3.0

Introduced

B&W LCD radios
Grayscale LCD radios
Color LCD radios
Drawing flag
Color constants
Bitmap.open

integer

-- drawing bitmap stored on sd card root folder with original size
local myLogo = Bitmap.open("/logo.png")
lcd.drawBitmap(myLogo,10,10)
-- drawing bitmap stored on sd card root folder doubling its size
local myLogo = Bitmap.open("/logo.png")
lcd.drawBitmap(myLogo,10,10,200)