A
Remark: For some renderers (like Direct2D or Cairo) processing of drawing operations may be deferred (Direct2D render target normally builds up a batch of rendering commands but defers processing of these commands, Cairo operates on a separate surface) so to make drawing results visible you need to update the content of the context by calling
See:
This class is derived (and can use functions) from:
wxWidgets docs:
Creates a
See:
Create a lightweight context that can be used only for measuring text.
Creates a
See:
Creates a native pen from a
Prefer to use the overload taking
Creates a native brush from a
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
The ability to apply a transformation matrix to the gradient was added in 3.1.3
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
The
Creates a native graphics font from a
Remark: For Direct2D graphics fonts can be created from TrueType fonts only.
Creates a font object with the specified attributes.
The use of overload taking
Remark: For Direct2D graphics fonts can be created from TrueType fonts only.
Since: 2.9.3
Creates a native affine transformation matrix from the passed in values.
The default parameters result in an identity matrix.
Creates a native graphics path which is initially empty.
Sets the clipping region to the intersection of the given region and the previously set clipping region.
The clipping region is an area to which drawing is restricted.
Remark:
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Resets the clipping to original shape.
Draws the bitmap.
In case of a mono bitmap, this is treated as a mask and the current brushed is used for filling.
Draws an ellipse.
Draws the icon.
Draws a polygon.
Draws the path by first filling and then stroking.
Draws a rectangle.
Draws a rounded rectangle.
Draws text at the defined position.
Draws text at the defined position.
Draws text at the defined position.
Fills the path with the current brush.
Strokes along a path with the current pen.
Fills the
Gets the dimensions of the string using the currently selected font.
Rotates the current transformation matrix (in radians).
Scales the current transformation matrix.
Translates the current transformation matrix.
Gets the current transformation matrix of this context.
Sets the current transformation matrix of this context.
Concatenates the passed in transform with the current transform of this context.
Sets the brush for filling paths.
Sets the font for drawing text.
Sets the font for drawing text.
Remark: For Direct2D only TrueType fonts can be used.
Sets the pen used for stroking.
Strokes a single line.
Stroke lines connecting all the points.
Unlike the other overload of this function, this method draws a single polyline and not a number of disconnected lines.