Creates a new DC object; the first form (WINDOW is a Win32::GUI object) gets the DC for the specified window (can also be called as WINDOW->GetDC). The second form creates a DC for the specified DEVICE; actually, the only supported DRIVER is the display driver (eg. the screen). To get the DC for the entire screen use:
$Screen = new Win32::GUI::DC("DISPLAY");
[TBD]
[TBD]
Gets or sets the background color.
[TBD]
Gets or sets the current background mix mode for the DC; possible values
are:
Draws a circle or an ellipse; X, Y, RADIUS specifies the center point and
the radius of the circle, while X, Y, WIDTH, HEIGHT specifies the center
point and the size of the ellipse. Returns nonzero if succesful, zero on
errors.
[TBD]
[TBD]
[TBD]
[TBD]
[TBD]
Returns the color of the pixel at X, Y.
Inverts the content of the rectangle from LEFT, TOP to RIGHT, BOTTOM.
Returns nonzero if succesful, zero on errors.
Draws a line from the current drawing position up to, but not including,
the point specified by X, Y. Returns nonzero if succesful, zero on errors.
[TBD]
Moves the current drawing position to the point specified by X, Y. Returns
nonzero if succesful, zero on errors.
Fills the DC content with the desktop pattern or wallpaper. Returns nonzero
if succesful, zero on errors.
[TBD]
Draws a rectangle from LEFT, TOP to RIGHT, BOTTOM; the rectangle is
outlined with the current pen and filled with the current brush. Returns
nonzero if succesful, zero on errors.
Restores the state of the DC saved by
Saves the current state of the DC (this means the currently selected
colors, brushes, pens, drawing modes, etc.) to an internal stack. The
function returns a number identifying the saved state; this number can then
be passed to the
[TBD]
Sets the pixel at X, Y to the specified COLOR (or to the current
[TBD]
[TBD]
Gets or sets the text color.
Draws the specified TEXT string at X, Y, using the currently selected font.
Returns nonzero if succesful, zero on errors.
Validates (removes from the update region) the whole DC area. This function
is intended to be used in a Paint event; see Win32::GUI::Graphic::Paint().
Returns nonzero if succesful, zero on errors.
1 TRANSPARENT
2 OPAQUE
Save().
STATE can
identify a state from the saved stack (use the identifier returned by the
corresponding Save()
call) or a negative number that specifies
how many steps backwards in the stack to recall (eg. -1 recalls the last
saved state). The default if STATE is not specified is -1. Note that the
restored state is removed from the stack, and if you restore an early one,
all the subsequent states will be removed too. Returns nonzero if
succesful, zero on errors. See also Save().
Restore()
function to load it back. If the
return value is zero, an error occurred. See also Restore().
TextColor()
if COLOR is not specified).