mirror of
https://github.com/AR2000AR/openComputers_codes.git
synced 2025-09-07 22:21:14 +02:00
1.0 KiB
1.0 KiB
Image(Widget)
Display a image. Supported format are .ppm
and .pam
both in ASCII or RAW (binary) format.
Constructor
- x : int
- y : int
- img : string|ImageFile. The image file path
- drawMethod : int
Inherited public methods
Public methods
getWidth
Return
- width : int
getHeight
Return
- height: int
getSize
Return
- width : int
- height : int
setDrawMethod
Define how a individual pixel is drawn :
- true : 2 pixels per character (square pixel)
- false : 1 pixel per character (rectangle pixel)
Argument
- drawMethod : boolean
getDrawMethod
How a individual pixel is drawn :
- true : 2 pixels per character (square pixel)
- false : 1 pixel per character (rectangle pixel)
Return
- drawMethod : boolean