void * data
Pointer to bitmap memory, or NULL if the backend keeps no direct memory representation, or the bitmap hasn't been retained for drawing on.
pix_color_t pix_bitmap_get_pixel(const pix_bitmap_t *bitmap, pix_point_t point)
Read a single pixel's color.
uint32_t pix_color_t
Color value type for pixel operations.
Plain in-memory pixel bitmap descriptor.
void pix_bitmap_fill_rect(pix_bitmap_t *bitmap, pix_point_t origin, pix_size_t size, pix_color_t color)
Fill a rectangle with a single color.
void pix_bitmap_set_op(pix_bitmap_t *bitmap, pix_op_t op)
Change a bitmap's compositing mode.
void pix_bitmap_draw_line(pix_bitmap_t *bitmap, pix_point_t a, pix_point_t b, pix_color_t color)
Draw a straight line between two points.
struct pix_bitmap_ops_t pix_bitmap_ops_t
Backend-specific bitmap operations - opaque to public API callers.
Point structure representing X,Y coordinates.
const pix_bitmap_ops_t * ops
Backend-specific operations, or NULL -.
void pix_bitmap_set_pixel(pix_bitmap_t *bitmap, pix_point_t point, pix_color_t color)
Write a single pixel's color.
pix_op_t
Compositing mode for drawing operations.
size_t stride
Byte pitch between adjacent major-axis elements.
pix_format_t fmt
Pixel format used by data.
pix_format_t
Pixel format enumeration defining color depth and layout.
Size structure representing width and height dimensions.