- draw
void draw(T path, Paint paint, WindingRule wr)
Draw the path with the specified paint
- draw
void draw(T path, uint color, WindingRule wrule)
Draw the path with the specified color and winding rule
- draw
void draw(T path, LinearGradient lingrad, WindingRule wrule)
Draw the path with a linear gradient
- draw
void draw(T path, RadialGradient radgrad, WindingRule wrule)
Draw the path with a radial gradient
- draw
void draw(T path, AngularGradient angrad, WindingRule wrule)
Draw the path with an angular gradient
- draw
void draw(T path, BiradialGradient bigrad, WindingRule wrule)
Draw the path with a biradial gradient
- drawText
void drawText(float x, float y, string txt, Font font, uint color)
Undocumented in source. Be warned that the author may not have intended to support it.
- fill
void fill(T paint)
Fill the the current viewport with the specified paint.
- fill
void fill(T paint, IRect rect)
Fill the rectangle with the specified paint.
- fill
void fill(T paint, int x0, int y0, int x1, int y1)
Fill the rectangle with the specified paint.
- getViewState
ViewState getViewState()
Gets the current clip and viewport state
- height
int height()
- isClipEmpty
bool isClipEmpty()
Is there any valid region we can draw on?
- pixels
uint* pixels()
returns a pointer to the raw pixels in memory
- resetState
void resetState(ViewState state)
Reset the to previous viewport and clip state
- resetView
void resetView()
Completely reset the viewport and clip
- resize
void resize(int width, int height)
- setClip
void setClip(int x0, int y0, int x1, int y1)
- setView
void setView(int x0, int y0, int x1, int y1)
- setView
void setView(ViewState state, int x0, int y0, int x1, int y1)
Set the viewport relative to a specific ViewState
- stride
int stride()
stride is the length of each scanline in pixels.
- width
int width()