Module buffer

Module buffer 

Source

Structs§

BinaryBuffer
A compact buffer for storing binary coloured display data.
Gray2SplitBuffer
A buffer supporting 2-bit grayscale colours. This buffer splits the 2 bits into two separate single-bit framebuffers.
RotatedBuffer
Enables arbitrarily rotating an underlying DrawTarget buffer. This is useful if the default display orientation does not match the desired orientation of the content.

Enums§

Rotate
Represents a 90, 180, or 270 degree clockwise rotation of a point within a given size.

Traits§

BufferView
Provides a view into a display buffer’s data. This buffer is encoded into a set number of frames and bits per pixel.
Rotation

Functions§

binary_buffer_length
Computes the correct size for the binary buffer based on the given dimensions.
gray2_split_buffer_length
Computes the correct size for the Gray2SplitBuffer based on the given dimensions.