4.4 Recording Drawing Contexts
class | |||||
|
Use RecordDC.get_draw to get a drawing function that replays the recorded drawing, or use RecordDC.get_record to get a value that can be serialized, deserialized, and converted to a drawing function with RecordDC.record_to_draw.
When drawing recorded actions, the target drawing context’s pen, brush, font, text, background, text background, and text foreground do not affect the recorded actions. The target drawing context’s transformation, alpha, and clipping region compose with settings in the recorded actions (so that, for example, a recorded action to set the clipping region actually intersects the region with the drawing context’s clipping region at the time that the recorded commands are replayed). After recoded commands are replayed, all settings in the target drawing context, such as its clipping region or current font, are as before the replay.
method | |
| |
function | |
A drawing function returned by RecordDC.record_to_draw behaves like one from RecordDC.get_draw.