media::native_image

Structs

NativeImage

A platform-native image. This will be managed by Pax's compositor as a platform-specific host for an image, for example a DOM <img> element on the web, or a UIImageView on iOS. NativeImage is an alternative to using pax_std::media::Image, with various trade-offs, where the latter is managed as a GPU texture and drawn on a canvas surface.

Properties

url

Type: Property<String>

Image URL/path understood by the chassis.

fit

Type: Property<ImageFit>

How the image should fit into this node's bounds.