Type Alias ImageData

Source
pub type ImageData = Image;
Expand description

Owned shareable image data.

Aliased Type§

struct ImageData {
    pub data: Blob<u8>,
    pub format: ImageFormat,
    pub width: u32,
    pub height: u32,
    pub x_extend: Extend,
    pub y_extend: Extend,
    pub quality: ImageQuality,
    pub alpha: f32,
}

Fields§

§data: Blob<u8>

Blob containing the image data.

§format: ImageFormat

Pixel format of the image.

§width: u32

Width of the image.

§height: u32

Height of the image.

§x_extend: Extend

Extend mode in the horizontal direction.

§y_extend: Extend

Extend mode in the vertical direction.

§quality: ImageQuality

Hint for desired rendering quality.

§alpha: f32

An additional alpha multiplier to use with the image.