OHOS::Paint
Overview
Related Modules:
Description:
Defines the basic styles of graphs drawn on canvases.
Since:
1.0
Version:
1.0
Summary
Public Types
PaintStyle { STROKE_STYLE = 1, FILL_STYLE, STROKE_FILL_STYLE } |
Enumerates paint styles of a closed graph. The styles are invalid for non-closed graphs. |
Public Member Functions
Paint () |
A constructor used to create a Paint instance. |
~Paint () |
A destructor used to delete the Paint instance. |
SetStyle (PaintStyle style) |
|
GetStyle () const |
|
SetStrokeWidth (uint16_t width) |
|
GetStrokeWidth () const |
|
SetStrokeColor (ColorType color) |
|
GetStrokeColor () const |
|
SetFillColor (ColorType color) |
|
GetFillColor () const |
|
SetOpacity (uint8_t opacity) |
|
GetOpacity () const |
|
operator new (size_t size) |
|
operator delete (void p) |