pub struct PdfBitmap<'a> { /* private fields */ }
Expand description

A bitmap image with a specific width and height.

Implementations

Creates an empty PdfBitmap with a buffer capable of storing an image of the given pixel width and height in the given pixel format.

Returns the width of the image in the bitmap buffer backing this PdfBitmap.

Returns the height of the image in the bitmap buffer backing this PdfBitmap.

Returns the pixel format of the image in the bitmap buffer backing this PdfBitmap.

Returns an immutable reference to the bitmap buffer backing this PdfBitmap.

Returns a new Image::DynamicImage created from the bitmap buffer backing this PdfBitmap.

Trait Implementations

Closes this PdfBitmap, releasing the memory held by the bitmap buffer.

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 alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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.