Struct blit::BlitBuffer

source ·
pub struct BlitBuffer { /* private fields */ }
Expand description

A data structure holding a color and a mask buffer to make blitting on a buffer real fast.

Implementations§

Blit the image on a buffer using bitwise operations–this is a lot faster than blit_with_mask_color.

Blit a section of the image on a buffer.

Create a instance from a buffer of Color data.

Saves the buffer to a file at the path specified. A custom binary format is used for this.

Create a new buffer from a file at the path specified. The file needs to be the custom binary format.

Create a new buffer from a file at the path specified. The array needs to be the custom binary format.

Get the size of the buffer in pixels.

Trait Implementations§

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

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
Sets value as a parameter of self.
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.