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

Parameter | Description
--- | ---
`painter` | Target painter.
`x` | Destination x coordinate.
`y` | Destination y coordinate.
`width` | Destination width. If negative or zero, the intrinsic width is used.
`height` | Destination height. If negative or zero, the intrinsic height is used.

Example

    image = GifImage("status.gif")
    image.render(painter, 8, 8, 32, 32)