RSX Code Reference
    Preparing search index...
    • rsx
    • UIDrawImageElement

    Class UIDrawImageElement

    Defines an image element within UIDrawContent.

    Index
    _border: RectOffset
    _clipPath: Path
    _depth?: number
    _image: Image
    _preserveAspect: boolean
    _rect: Rect2
    _tint: SRGBColor
    • get clipPath(): Path

      Clip path in local point coordinates. If set, the image is clipped to this path shape.

      Returns Path

    • set clipPath(value: Path): void

      Parameters

      Returns void

    • get depth(): number

      Optional depth layer override. If unset, the default insertion-order depth is used.

      Returns number

    • set depth(value: number): void

      Parameters

      • value: number

      Returns void

    • get image(): Image

      The image resource to display.

      Returns Image

    • set image(value: Image): void

      Parameters

      Returns void

    • get preserveAspect(): boolean

      Whether to preserve the image's aspect ratio when scaling.

      Returns boolean

    • set preserveAspect(value: boolean): void

      Parameters

      • value: boolean

      Returns void