Skip to end of metadata
Go to start of metadata

This component is deprecated and will be removed from Roku OS on January 1st, 2019.

Beginning July 1st, 2017, any new channels using this component will be rejected during certification.

Beginning January 1st, 2018, any updates to existing channels using this component will be rejected during certification.

Supported Interfaces

Events

Description

The roImageCanvas component provides an interface to render graphic elements at specific spots on the screen.

Although it is not intended to be a full-fledged graphics component for high-performance gaming, it does provide a simple interface for building custom animations out of arrays of images displayed on the screen.

An item (graphical element) may be one of three types: image, text, or colored rectangle.  The item type is determined by the Content Meta-Data fields set on the item.

Image

If the URL attribute is set, the item is displayed as an image.

Attributes (see Content Meta-Data):

URL
CompositionMode
SourceRect
TargetRect
TargetTranslation
TargetRotation

Text

If the Text attribute is set, the item is displayed as text.

Attributes (see Content Meta-Data):

Text
TextAttrs { Color, Font, HAlign, VAlign, Direction }
TargetRect

Rectangle

If the Color attribute is set, the item is displayed as a filled rectangle.

Attributes (see Content Meta-Data):

Color
TargetRect

 

Example: displays two images and some text on the screen
  • No labels