Skip to content
Select language:English

AuRea 1.0.2

class AuImage(val bitmap: AuBitmap, margin: AuInsets = AuInsets()) : AuWidget

A widget that displays an image.

Parameters

bitmap

The AuBitmap to be displayed.

margin

The margin around the image.

Constructors

constructor(bitmap: AuBitmap, margin: AuInsets = AuInsets())

Properties

open override val contentHeight: Float

The height of the widget excluding margins.

open override val contentWidth: Float

The width of the widget excluding margins.

Inherited properties

val height: Int

The height of the widget including margins.

val width: Int

The width of the widget including margins.

Functions

open override fun draw(canvas: AuCanvas, x: Float, y: Float)

Draws the widget on the given canvas at the specified position.

Inherited functions

fun buildObject(trans: Mat4f, pixelsPerMeters: Float = 10000.0f): AuObject

Builds a textured 3D object from this widget.