Struct printpdf::types::plugins::graphics::two_dimensional::image::Image [] [src]

pub struct Image {
    pub image: ImageXObject,
}

Image - wrapper around an ImageXObject to allow for more control within the library

Fields

The actual image

Methods

impl Image
[src]

[src]

impl Image
[src]

[src]

Adds the image to a specific layer and consumes it This is due to a PDF weirdness - images are basically just "names" and you have to make sure that they are added to the same page as they are used on.

You can use the "dpi" parameter to specify a scaling - the default is 300dpi

Trait Implementations

impl Debug for Image
[src]

[src]

Formats the value using the given formatter.

impl From<ImageXObject> for Image
[src]

[src]

Performs the conversion.