1 2 | def AngleArc(hdc: HDC, x: int, y: int, r: int, StartAngle: float, SweepAngle: float) -> bool: |
Handle to the device context
X coordinate of the center of the circle
Y coordinate of the center of the circle
The radius of the circle
The start angle in degrees, relative to the x-axis
The sweep angle in degrees, relative to the starting angle
1 2 | def Arc(hdc: HDC, x1: int, y1: int, x2: int, y2: int, x3: int, y3: int, x4: int, y4: int) -> bool: |
Handle to the device context
X coordinate of the upper-left corner of the bounding rectangle
Y coordinate of the upper-left corner of the bounding rectangle
X coordinate of the lower-right corner of the bounding rectangle
Y coordinate of the lower-right corner of the bounding rectangle
X coordinate of the ending point of the radial line defining the starting point of the arc.
Y coordinate of the ending point of the radial line defining the starting point of the arc.
X coordinate of the ending point of the radial line defining the ending point of the arc.
Y coordinate of the ending point of the radial line defining the ending point of the arc.
1 2 | def ArcTo(hdc: HDC, left: int, top: int, right: int, bottom: int, xr1: int, yr1: int, xr2: int, yr2: int) -> bool: |
Handle to the device context
X coordinate of the upper-left corner of the bounding rectangle
Y coordinate of the upper-left corner of the bounding rectangle
X coordinate of the lower-right corner of the bounding rectangle
Y coordinate of the lower-right corner of the bounding rectangle
X coordinate of the endpoint of the radial defining the starting point of the arc
Y coordinate of the endpoint of the radial defining the starting point of the arc
X coordinate of the endpoint of the radial defining the ending point of the arc
Y coordinate of the endpoint of the radial defining the ending point of the arc
1 2 | def BeginPath(hdc: HDC) -> bool: |
Handle to a device context
1 2 | def BitBlt(HDC: hdcDst, int: x, int: y, int: cx, int: cy, HDC: hdcSrc, int: x1, int: y1, int: rop) -> bool: |
Handle to the destination device context
Rectangles left offset
Rectangles top offset
Rectangles right offset
Rectangles bottom offset
Handle to the source device context
Source device context's rectangles left
Source device context's rectangles top
The raster operation code
1 2 | def CancelDC(hdc: HDC) -> bool: |
A handle to a device context
1 2 | def Chord(hdc: HDC, x1: int, y1: int, x2: int, y2: int, x3: int, y3: int, x4: int, y4: int) -> bool: |
Handle to the device context
X coordinate of the upper-left corner of the bounding rectangle
Y coordinate of the upper-left corner of the bounding rectangle
X coordinate of the lower-right corner of the bounding rectangle
Y coordinate of the lower-right corner of the bounding rectangle
X coordinate of the endpoint of the radial defining the beginning of the chord
Y coordinate of the endpoint of the radial defining the beginning of the chord
X coordinate of the endpoint of the radial defining the end of the chord
Y coordinate of the endpoint of the radial defining the end of the chord
1 2 | def CreateCompatibleBitmap(hdc: HDC, cx: int, cy: int) -> HBITMAP: |
A handle to a device context
The bitmap width, in pixels
The bitmap height, in pixels
1 2 | def CreateCompatibleDC(hdc: HDC) -> HDC: |
Handle to the device context, or None
1 2 | def CreateDIBSection(hdc: HDC): |
1 2 | def CreateEllipticRgn(x1: int, y1: int, x2: int, y2: int) -> HRGN: |
X coordinate of the upper-left corner of the bounding rectangle of the ellipse
Y coordinate of the upper-left corner of the bounding rectangle of the ellipse
X coordinate of the lower-right corner of the bounding rectangle of the ellipse
Y coordinate of the lower-right corner of the bounding rectangle of the ellipse
1 2 | def CreateEllipticRgnIndirect(rgnTuple: tuple) -> HRGN: |
A tuple of 4 integers containing the X coordinate of the upper-left corner of the bounding rectangle of the ellipse, Y coordinate of the upper-left corner of the bounding rectangle of the ellipse, X coordinate of the lower-right corner of the bounding rectangle of the ellipse and Y coordinate of the lower-right corner of the bounding rectangle of the ellipse.
1 2 | def CreateHatchBrush(iHatch: int, color: int) -> HBRUSH: |
The hatch style of the brush.
The foreground color of the brush that is used for the hatches. To create a color value, use the RGB function.
1 2 | def CreatePen(iStyle: int, cWidth: int, color: int) -> HPEN: |
The pen style. It can be any one of the following values; ``PS_SOLID, PS_DASH, PS_DOT, PS_DASHDOT, PS_DASHDOTDOT, PS_NULL or PS_INSIDEFRAME``
The width of the pen
The color of the pen, commonly returned from the RGB function
1 2 | def CreatePenIndirect(penProperties: tuple) -> HPEN: |
The touple should contain the pen style, the width of the pen as a tuple of two integers, and the color of the pen.
1 2 | def CreatePolygonRgn(points: tuple, mode: int) -> HRGN: |
Tuple of coordinates to be made into a polygon, example ((100, 100), (200, 100), (150, 200)) for a triangle
ALTERNATE or WINDING
1 2 | def CreateRectRgn(x1: int, y1: int, x2: int, y2: int) -> HRGN: |
X coordinate of the upper-left corner of the bounding rectangle of the rectangle
Y coordinate of the upper-left corner of the bounding rectangle of the rectangle
X coordinate of the lower-right corner of the bounding rectangle of the rectangle
Y coordinate of the lower-right corner of the bounding rectangle of the rectangle.
1 2 | def CreateRectRgnIndirect(rgnTuple: tuple) -> HRGN: |
A tuple of 4 integers containing the X coordinate of the upper-left corner of the bounding rectangle of the rectangle, Y coordinate of the upper-left corner of the bounding rectangle of the rectangle, X coordinate of the lower-right corner of the bounding rectangle of the rectangle and Y coordinate of the lower-right corner of the bounding rectangle of the rectangle.
1 2 | def CreateRoundRectRgn(x1: int, y1: int, x2: int, y2: int, w: int, h: int) -> HRGN: |
X coordinate of the upper-left rectangle.
Y coordinate of the upper-left rectangle.
X coordinate of the down-right rectangle.
Y coordinate of the down-right rectangle.
Horizontal strength of the roundness.
Vertical strength of the roundness.
1 2 | def CreateSolidBrush(color: int) -> HBRUSH: |
The color of the brush
1 2 | def DeleteDC(HDC: hdc) -> bool: |
Handle to a device context to deallocate and close.
1 2 | def DeleteObject(object: HGDIOBJ) -> bool: |
The object to delete, can be a brush, a pen etc.
1 2 | def Ellipse(left: int, top: int, right: int, bottom: int) -> bool: |
Left offset of ellipse
Top offset of ellipse
Right offset of ellipse
Bottom offset of ellipse
1 2 | def EndPath(hdc: HDC) -> bool: |
Handle to a device context
1 2 | def EqualRgn(rgn1: HRGN, rgn2: HRGN) -> bool: |
The first region to be compared
The second region to be compared
1 2 | def ExtCreatePen(style: int, cWidth: int, logBrush: tuple, pstyle: tuple) -> HPEN: |
The type can be ``PS_GEOMETRIC or PS_COSMETIC``, combine it with the OR operator with the style that can be any of the following values; ``PS_ALTERNATE, PS_SOLID, PS_DASH, PS_DOT, PS_DASHDOT, PS_DASHDOTDOT, PS_NULL, PS_USERSTYLE, PS_INSIDEFRAME``, combine it with the OR operator if the pen type is geometric with any of the following values (end cap); ``PS_ENDCAP_ROUND, PS_ENDCAP_SQUARE, PS_ENDCAP_FLAT``, if it is geometrical you should also combine it with the OR operator with any of the following values (join); ``PS_JOIN_BEVEL, PS_JOIN_MITER, PS_JOIN_ROUND``.
The width of the pen. If the pen type is ``PS_COSMETIC`` it should be set to 1.
Tuple containing 3 elements; style, color and a hatch brush.
Tuple of maximum 16 ints that specifies an user-defined style, or None.
1 2 | def FillRgn(hdc: HDC, rgn: HRGN, brush: HBRUSH) -> bool: |
Handle to a device context
Region to be filled
Brush to paint the region with
1 2 | def FlattenPath(hdc: HDC) -> bool: |
Handle to a device context
1 2 | def FrameRgn(hdc: HDC, rgn: HRGN, hbr: HBRUSH, w: int, h: int) -> bool: |
Handle to a device context
Handle to a region to be drawn a border around it
Brush to paint the border with
Width of vertical brush strokes.
Height of horizontal brush strokes.
1 2 | def GdiGetBatchLimit() -> int: |
1 2 | def GdiSetBatchLimit(val: int) -> int: |
The number of maxiumum number of function calls that can be accumulated in the calling thread's current batch
1 2 | def GetArcDirection(hdc: HDC) -> int: |
Handle to a device context
1 2 | def GetBValue(color: int) -> int: |
Color to retrieve the B value from
1 2 | def GetBkColor(hdc: HDC) -> int: |
Handle to a device context
1 2 | def GetBkMode(hdc: HDC) -> int: |
Handle to a device context
1 2 | def GetDCBrushColor(hdc: HDC) -> int: |
Handle to the device context
1 2 | def GetDCOrgEx(hdc: HDC) -> (int, int): |
Handle to the device context
1 2 | def GetDCPenColor(hdc: HDC) -> int: |
Handle to the device context
1 2 | def GetDeviceCaps(hdc: HDC, index: int) -> int: |
Handle to the device context
The item to be returned
1 2 | def GetGValue(color: int) -> int: |
Color to retrieve the G value from
1 2 | def GetLastError() -> int: |
1 2 | def GetObjectType(h: int) -> int: |
Handle to the object
1 2 | def GetPixel(hdc: HDC, x: int, y: int) -> int: |
The device context to retrieve the pixel of.
The x coordinate of the pixel
The y coordinate of the pixel
1 2 | def GetRGBValues(color: int) -> tuple: |
Color to retrieve the RGB values from
1 2 | def GetRValue(color: int) -> int: |
Color to retrieve the R value from
1 2 | def GetStockObject(i: int) -> HGDIOBJ: |
The type of stock object to be retrieved.
1 2 | def GetStretchBltMode(hdc: HDC) -> int: |
The device context to retrieve the stretching mode of
1 2 | def GetTextAlign(hdc: HDC) -> int: |
Handle to a device context
1 2 | def GetTextColor(hdc: HDC) -> int: |
Handle to a device context
1 2 | def GetWorldTransform(hdc: HDC) -> (float, float, float, float, float, float): |
Handle to a device context
1 2 | def InvertRgn(hdc: int, hrgn: int) -> O: |
1 2 | def LineTo(hdc: HDC, x: int, y: int) -> bool: |
Handle to a device context
X-coordinate of the line
Y-coordinate of the line
1 2 | def MaskBlt(hdcDest: hdc, xDest: int, yDest: int, width: int, height: int, hdcSrc: hdc, xSrc: int, ySrc: int, hbmMask: HBITMAP, xMask: int, yMask: int) -> bool: |
Handle to the destination device context.
The x-coordinate, in logical units, of the upper-left corner of the source rectangle.
The y-coordinate, in logical units, of the upper-left corner of the source rectangle.
The width, in logical units, of the source rectangle.
The height, in logical units, of the source rectangle.
Handle to the source device context.
The x-coordinate, in logical units, of the upper-left corner of the source bitmap.
The y-coordinate, in logical units, of the upper-left corner of the source bitmap.
A handle to a monochrome bitmap that is used to mask the colors of the source rectangle.
The x-coordinate, in logical units, of the upper-left corner of the monochrome bitmap.
The y-coordinate, in logical units, of the upper-left corner of the monochrome bitmap.
1 2 | def PaintRgn(hdc: HDC, rgn: HRGN) -> bool: |
Handle to a device context
Region to be painted
1 2 | def PatBlt(HDC: hdc, int: x, int: y, int: w, int: h, int: rop) -> bool: |
Handle to the device context
Rectangles left offset
Rectangles top offset
Rectangles right offset
Rectangles bottom offset
The raster operation code
1 2 | def PathToRegion(hdc: HDC) -> HRGN: |
Handle to a device context
1 2 | def Pie(hdc: HDC, left: int, top: int, right: int, bottom: int, xr1: int, yr1: int, xr2: int, yr2: int) -> bool: |
Handle to the device context
X coordinate of the upper-left corner of the bounding rectangle
Y coordinate of the upper-left corner of the bounding rectangle
X coordinate of the lower-right corner of the bounding rectangle
Y coordinate of the lower-right corner of the bounding rectangle
X-coordinate of the endpoint of the first radial
Y-coordinate of the endpoint of the first radial
X-coordinate of the endpoint of the second radial
Y-coordinate of the endpoint of the second radial
1 2 | def PlgBlt(hdcDst: hdc, points: tuple, hdcSrc: hdc, xSrc: int, ySrc: int, width: int, height: int, bitmap: HBITMAP, xMask: int, yMask: int) -> bool: |
Handle to the destination device context.
Tuple of three tuples of two ints that identify the parallelogram. Example ``((-10, 10), (20, 0), (10, -10))``.
Handle to the source device context.
The x-coordinate, in logical units, of the upper-left corner of the source rectangle.
The y-coordinate, in logical units, of the upper-left corner of the source rectangle.
The width, in logical units, of the source rectangle.
The height, in logical units, of the source rectangle.
None or a handle to a monochrome bitmap that is used to mask the colors of the source rectangle.
The x-coordinate, in logical units, of the upper-left corner of the monochrome bitmap.
The y-coordinate, in logical units, of the upper-left corner of the monochrome bitmap.
1 2 | def RGB(r: int, g: int, b: int) -> int: |
The R Value
The G value
The B value
1 2 | def Rectangle(left: int, top: int, right: int, bottom: int) -> bool: |
Left offset of rectangle
Top offset of rectangle
Right offset of rectangle
Bottom offset of rectangle
1 2 | def RestoreDC(hdc: HDC, nSavedDC: int) -> bool: |
Handle to the device context
The state to be restored
1 2 | def RoundRect(hdc: HDC, x1: int, y1: int, x2: int, y2: int, w: int, h: int) -> bool: |
Handle to a device context.
X coordinate of the upper-left rectangle.
Y coordinate of the upper-left rectangle.
X coordinate of the down-right rectangle.
Y coordinate of the down-right rectangle.
Horizontal strength of the roundness.
Vertical strength of the roundness.
1 2 | def SaveDC(hdc: HDC) -> int: |
Handle to the device context
1 2 | def SelectClipPath(hdc: HDC, mode: int) -> bool: |
Handle to a device context
RGN_AND, RGN_COPY, RGN_DIFF, RGN_OR or RGN_XOR
1 2 | def SelectClipRgn(hdc: HDC, hrgn: HRGN) -> int: |
A handle to a device context
A handle to a region
1 2 | def SelectObject(object: int) -> int: |
Handle to the object to select
1 2 | def SelectPalette(hdc: HDC, hPal: HPALLETE, forceBkgd: bool) -> HPALLETE: |
Handle to a device context
Handle to the logical palette to be selected
[Optional] Specifies whether the logical palette is forced to be a background palette
1 2 | def SetArcDirection(hdc: HDC, dir: int) -> int: |
Handle to the device context
AD_COUNTERCLOCKWISE (Figures drawn counterclockwise) or AD_CLOCKWISE (Figures drawn clockwise)
1 2 | def SetBkColor(hdc: HDC, mode: int) -> bool: |
Handle to a device context
OPAQUE or TRANSPARENT
1 2 | def SetBkMode(hdc: HDC, mode: int) -> bool: |
Handle to a device context
OPAQUE or TRANSPARENT
1 2 | def SetPixel(hdc: HDC, x: int, y: int, color: int) -> int: |
The device context to change the pixel of.
The x coordinate of the pixel
The y coordinate of the pixel
The new color of the pixel
1 2 | def SetPixelV(hdc: HDC, x: int, y: int, color: int) -> int: |
Handle to a device context
The X coordinate of the pixel
The Y coordinate of the pixel
The new color of the pixel
1 2 | def SetPolyFillMode(hdc: HDC, mode: int) -> int: |
Handle to a device context
ALTERNATE or WINDING
1 2 | def SetROP2(hdc: HDC, rop2: int) -> int: |
Handle to a device context
The mixing mode
1 2 | def SetStretchBltMode(hdc: HDC, iMode: int) -> int: |
The device context to change the stretching mode of
The new stretching mode
1 2 | def SetTextAlign(hdc: HDC, align: int) -> int: |
Handle to a device context
The text alignment by using a mask.
1 2 | def SetTextCharacterExtra(hdc: HDC, extra: int) -> int: |
Handle to a device context
The amount of extra space
1 2 | def SetTextColor(hdc: HDC, color: int) -> int: |
Handle to a device context
Text color
1 2 | def SetTextJustification(hdc: HDC, extra: int, count: int) -> bool: |
Handle to a device context
The extra space
The number of break characters in the line
1 2 | def StretchBlt(hdcDest: HDC, xDest: int, yDest: int, wDest: int, hDest: int, hdcSrc: HDC, xSrc: int, ySrc: int, wSrc: int, hSrc: int, rop: int) -> bool: |
Handle to destinations device context
Left offset of the destinations rectangle
Top offset of the destinations rectangle
Right offset of the destinations rectangle
Bottom offset of the destinations rectangle
Handle to sources device context
Left offset of the sources rectangle
Top offset of the sources rectangle
Right offset of the sources rectangle
Bottom offset of the sources rectangle
The raster operation
1 2 | def TextOut(hdc: HDC, x: int, y: int, string: str) -> bool: |
Handle to a device context
The x-position where the text should be drawn at
The y-position where the text should be drawn at
The text that should be drawn, in UTF-16
1 2 | def TextOutA(hdc: HDC, x: int, y: int, string: str) -> bool: |
Handle to a device context
The x-position where the text should be drawn at
The y-position where the text should be drawn at
The text that should be drawn, in ASCII
1 2 | def TextOutW(hdc: HDC, x: int, y: int, string: str) -> bool: |
Handle to a device context
The x-position where the text should be drawn at
The y-position where the text should be drawn at
The text that should be drawn, in UTF-16
1 2 | def UnrealizeObject(h: HGDIOBJ) -> bool: |
Handle to an object to be reset
1 2 | def UpdateColors(hdc: HDC) -> bool: |
Handle to a device context