Search

A PseudoDC is an object that can be used much like real
wx.DC, however it provides some additional features for
object recording and manipulation beyond what a wx.DC can
provide.

All commands issued to the PseudoDC are stored in a list. You
can then play these commands back to a real DC object as often as
needed, using the DrawToDC method or one of the similar
methods. Commands in the command list can be tagged by an ID. You
can use this ID to clear the operations associated with a single
ID, redraw the objects associated with that ID, grey them, adjust
their position, etc.

A PseudoDC is an object that can be used much like real
wx.DC, however it provides some additional features for
object recording and manipulation beyond what a wx.DC can
provide.

All commands issued to the PseudoDC are stored in a list. You
can then play these commands back to a real DC object as often as
needed, using the DrawToDC method or one of the similar
methods. Commands in the command list can be tagged by an ID. You
can use this ID to clear the operations associated with a single
ID, redraw the objects associated with that ID, grey them, adjust
their position, etc.

Draw a bitmap on the device context at the specified
point. If useMask is True and the bitmap has a
transparency mask, (or alpha channel on the platforms that
support it) then the bitmap will be drawn transparently.

When drawing a mono-bitmap, the current text foreground
colour will be used to draw the foreground of the bitmap
(all bits set to 1), and the current text background
colour to draw the background (all bits set to 0).

Draws an arc of an ellipse, with the given rectangle
defining the bounds of the ellipse. The current pen is
used for drawing the arc and the current brush is used for
drawing the pie.

The start and end parameters specify the start and end
of the arc relative to the three-o’clock position from the
center of the rectangle. Angles are specified in degrees
(360 is a complete circle). Positive values mean
counter-clockwise motion. If start is equal to end, a
complete ellipse will be drawn.

Draw text and an image (which may be wx.NullBitmap to skip
drawing it) within the specified rectangle, abiding by the alignment
flags. Will additionally emphasize the character at indexAccel if
it is not -1.

Draws a line from the first point to the second.
The current pen is used for drawing the line. Note that
the second point is not part of the line and is not
drawn by this function (this is consistent with the
behaviour of many other toolkits).

Draws a filled polygon using a sequence of wx.Point objects, adding
the optional offset coordinate. The last argument specifies the fill
rule: wx.ODDEVEN_RULE (the default) or wx.WINDING_RULE.

The current pen is used for drawing the outline, and the current brush
for filling the shape. Using a transparent brush suppresses
filling. Note that wxWidgets automatically closes the first and last
points.

Draws a spline between all given control points, (a list of wx.Point
objects) using the current pen. The spline is drawn using a series of
lines, using an algorithm taken from the X drawing program ‘XFIG‘.

Draws a text string at the specified point, using the
current text font, and the current text foreground and
background colours.

The coordinates refer to the top-left corner of the
rectangle bounding the string. See wx.DC.GetTextExtent
for how to get the dimensions of a text string, which can
be used to position the text more precisely, (you will
need to use a real DC with GetTextExtent as wx.PseudoDC
does not implement it.)

NOTE: under wxGTK the current logical function is used
by this function but it is ignored by wxMSW. Thus, you
should avoid using logical functions with this function
in portable programs.”, “

Returns a list of all the id’s that draw a pixel with
color not equal to bg within radius of (x,y). Returns an
empty list if nothing is found. The list is in reverse
drawing order so list[0] is the top id.

Sets the current logical function for the device context. This
determines how a source pixel (from a pen or brush colour, combines
with a destination pixel in the current device context.

The possible values and their meaning in terms of source and
destination pixel values are defined in the wx.RasterOperationMode
enumeration.

The default is wx.``wx.COPY``, which simply draws with the current
colour. The others combine the current colour and the background using
a logical operation. wx.``wx.INVERT`` is commonly used for drawing rubber
bands or moving outlines, since drawing twice reverts to the original
colour.