1.1 Generic Drawing Context
One way to get a drawing context is Bitmap.make_dc.
property | |
| |
property | |
| |
property | |
property | |||
| |||
property | |||
| |||
property | |||
| |||
property | |||
| |||
property | |||
| |||
| |||
property | |||
| |||
| |||
property | |||
Beware that getting and setting DC.transformation does not save and restore precisely the same internal transformation state of dc. For cases where that is needed, DC.layered_transformation produces and consumes an opaque value representing the internal state The DC.save and DC.restore methods use DC.layered_transformation, for example.
method | |
| |
method | |
| |
| |
method | |
| |
method | |
| |
| |
method | |
| |
method | |
|
method | |||
| |||
method | |||
| |||
expression | |||
|
The DC.save method pushes the current drawing state (pen, brush, clipping region, and transformation) onto an internal stack, and DC.restore pops the stack and restores the popped drawing state. The DC.save_and_restore form wraps a body sequence to save the drawing state on entry to the sequence and restore it on exit, returning the value(s) produced by the body sequence; entry and exit cover continuation jumps, like try.
method | |||||||
| |||||||
method | |||||||
| |||||||
method | |||||||
| |||||||
| |||||||
method | |||||||
| |||||||
| |||||||
method | |||||||
| |||||||
method | |||||||
| |||||||
method | |||||||
| |||||||
method | |||||||
| |||||||
method | |||||||
|
Offsets through dpt and also dx or dy are combined.
method | ||||||||
|
method | |||||||||||
|
enumeration | ||||
|
enumeration | ||||
|
enumeration | ||||
|