- 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)
- 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)
- drawIcon
void drawIcon(Icon icon, Rect r)
void drawIcon(Icon icon, int x, int y)
- 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)
- fromHwnd
Graphics fromHwnd(HWND hwnd)
- getScreen
Graphics getScreen()
Get the entire screen's Graphics for the primary monitor.
- 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)
- 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)
- 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)
- flush
void flush()
- getNearestColor
Color getNearestColor(Color c)
- getScaleSize
Size getScaleSize(Font f)
- 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)
- handle
HDC handle [@property getter]
- dispose
void dispose()
Graphics for a surface in memory.