[go: up one dir, main page]

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

A struct provides a RenderContext and then can have its bitmap extracted.

Implementations§

Get a piet RenderContext for the bitmap.

Note: caller is responsible for calling finish on the render context at the end of rendering.

Get raw RGBA pixels from the bitmap by copying them into buf. If all the pixels were copied, returns the number of bytes written. If buf wasn’t big enough, returns an error and doesn’t write anything.

Note: caller is responsible for making sure the requested ImageFormat is supported.

Get an in-memory pixel buffer from the bitmap.

Note: caller is responsible for making sure the requested ImageFormat is supported.

Stub for feature is missing

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.

Performs the conversion.
Performs the conversion.
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.