Draws an image to the screen. The class is called ImagePanel
to avoid
conflicts with kha.Image
.
Constructor
new(image:Image)
Variables
Methods
draw(g:KGraphics):Void
Draw the image to the screen.
Parameters:
g | The |
---|
setScale(scale:Bool, width:Int, height:Int):Void
Set the scale setting of this image element.
Parameters:
scale | If |
---|---|
width | The width of the image panel |
height | The height of the image panel |
setScaleQuality(quality:ImageScaleQuality):Void
Set the image scale quality. Default: Low
.
Parameters:
quality |
|
---|