klyn.gui.images.RasterImage.render
method
public render(painter as Painter, x as Int, y as Int, width as Int = -1, height as Int = -1, sourceX as Int = 0, sourceY as Int = 0, sourceWidth as Int = -1, sourceHeight as Int = -1) as Void:
Description

Renders the image into the given painter.

Parameters
ParameterDescription
painterTarget painter.
xDestination x coordinate.
yDestination y coordinate.
widthDestination width. If negative or zero, the intrinsic width is used.
heightDestination height. If negative or zero, the intrinsic height is used.
Example
image = GifImage("status.gif")
image.render(painter, 8, 8, 32, 32)