Graphics

class Graphics {}

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

copyTo
bool copyTo(Graphics destGraphics, int destX, int destY, int width, int height, int srcX = 0, int srcY = 0, DWORD rop = SRCCOPY)
bool copyTo(Graphics destGraphics, Rect bounds)
dispose
void dispose()
drawArc
void drawArc(Pen pen, int x, int y, int width, int height, int arcX1, int arcY1, int arcX2, int arcY2)
void drawArc(Pen pen, Rect r, Point arc1, Point arc2)
drawBezier
void drawBezier(Pen pen, Point[4] points)
void drawBezier(Pen pen, Point pt1, Point pt2, Point pt3, Point pt4)
drawBeziers
void drawBeziers(Pen pen, Point[] points)
drawEllipse
void drawEllipse(Pen pen, Rect r)
void drawEllipse(Pen pen, int x, int y, int width, int height)
drawIcon
void drawIcon(Icon icon, Rect r)
void drawIcon(Icon icon, int x, int y)
drawLine
void drawLine(Pen pen, Point start, Point end)
void drawLine(Pen pen, int startX, int startY, int endX, int endY)
drawLines
void drawLines(Pen pen, Point[] points)
drawPolygon
void drawPolygon(Pen pen, Point[] points)
drawRectangle
void drawRectangle(Pen pen, Rect r)
void drawRectangle(Pen pen, int x, int y, int width, int height)
drawRectangles
void drawRectangles(Pen pen, Rect[] rs)
drawText
void drawText(Dstring text, Font font, Color color, Rect r, TextFormat fmt)
void drawText(Dstring text, Font font, Color color, Rect r)
drawTextDisabled
void drawTextDisabled(Dstring text, Font font, Color color, Color backColor, Rect r, TextFormat fmt)
void drawTextDisabled(Dstring text, Font font, Color color, Color backColor, Rect r)
fillRectangle
void fillRectangle(Brush brush, Rect r)
void fillRectangle(Brush brush, int x, int y, int width, int height)
void fillRectangle(Color color, int x, int y, int width, int height)
fillRegion
void fillRegion(Brush brush, Region region)
flush
void flush()
getNearestColor
Color getNearestColor(Color c)
getScaleSize
Size getScaleSize(Font f)
measureText
Size measureText(Dstring text, Font font, int maxWidth, TextFormat fmt)
Size measureText(Dstring text, Font font, TextFormat fmt)
Size measureText(Dstring text, Font font, int maxWidth)
Size measureText(Dstring text, Font font)

Properties

handle
HDC handle [@property getter]

Static functions

fromHwnd
Graphics fromHwnd(HWND hwnd)
getScreen
Graphics getScreen()

Get the entire screen's Graphics for the primary monitor.

Meta