Struct printpdf::types::plugins::graphics::xobject::ImageXObject [] [src]

pub struct ImageXObject {
    pub width: Px,
    pub height: Px,
    pub color_space: ColorSpace,
    pub bits_per_component: ColorBits,
    pub interpolate: bool,
    pub image_data: Vec<u8>,
    pub image_filter: Option<ImageFilter>,
    pub clipping_bbox: Option<CurTransMat>,
}

Fields

Width of the image (original width, not scaled width)

Height of the image (original height, not scaled height)

Color space (Greyscale, RGB, CMYK)

Bits per color component (1, 2, 4, 8, 16) - 1 for black/white, 8 Greyscale / RGB, etc. If using a JPXDecode filter (for JPEG images), this can be inferred from the image data

Should the image be interpolated when scaled?

The actual data from the image

Compression filter used for this image

Required bounds to clip the image, in unit space Default value: Identity matrix ([1 0 0 1 0 0]) - used when value is None

Methods

impl ImageXObject
[src]

[src]

Creates a new ImageXObject

[src]

Trait Implementations

impl Debug for ImageXObject
[src]

[src]

Formats the value using the given formatter.

impl Clone for ImageXObject
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Into<Stream> for ImageXObject
[src]

[src]

Performs the conversion.