pub struct SbixGlyph<'a> {
    pub origin_offset_x: i16,
    pub origin_offset_y: i16,
    pub graphic_type: u32,
    pub data: &'a [u8],
}
Expand description

An sbix bitmap glyph.

Fields

origin_offset_x: i16

The horizontal (x-axis) offset from the left edge of the graphic to the glyph’s origin.

That is, the x-coordinate of the point on the baseline at the left edge of the glyph.

origin_offset_y: i16

The vertical (y-axis) offset from the bottom edge of the graphic to the glyph’s origin.

That is, the y-coordinate of the point on the baseline at the left edge of the glyph.

graphic_type: u32

Indicates the format of the embedded graphic data.

One of jpg , png or tiff, or the special format dupe.

data: &'a [u8]

The actual embedded graphic data.

Trait Implementations

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.