Bitmap Struct Reference

Control structure to draw in a bitmap. More...

#include <gfx.h>

Data Fields

uint8_t * raster
 Pointer to byte array to hold the data.
coord_t height
 Width/Height in pixels.
coord_t stride
 Bytes per row.
coord_t penY
 Current pen position MoveTo()/LineTo().
Rect cr
 Clip drawing inside this rectangle.
struct Font * font
 Current font for text rendering.
uint8_t styles
 Algorithmic text style flags.
Logical coordinate system

vcoord_t orgX
vcoord_t orgY
vcoord_t scaleX
vcoord_t scaleY

Detailed Description

Control structure to draw in a bitmap.

Definition at line 133 of file gfx.h.


Field Documentation

struct Font* Bitmap::font

Current font for text rendering.

Definition at line 145 of file gfx.h.

Bytes per row.

Definition at line 137 of file gfx.h.

uint8_t Bitmap::styles

Algorithmic text style flags.

The text rendering routine can apply a few simple transformations to the current font in order to generate common styles such as bold, italic and underline from plain glyphs.

See also:
text_style()

Definition at line 156 of file gfx.h.


The documentation for this struct was generated from the following file: