MemoryGraphics

Graphics for a surface in memory.

Constructors

this
this(int width, int height)
this(int width, int height, Graphics graphicsCompatible)
this
this(int width, int height, HDC hdcCompatible)
Undocumented in source.

Members

Functions

dispose
void dispose()
size
Size size()
Undocumented in source. Be warned that the author may not have intended to support it.
toBitmap
Bitmap toBitmap()
toBitmap
Bitmap toBitmap(HDC hdc)
Undocumented in source. Be warned that the author may not have intended to support it.
toBitmap
Bitmap toBitmap(Graphics g)
toHBitmap
HBITMAP toHBitmap(HDC hdc)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

hbitmap
HBITMAP hbitmap [@property getter]
height
int height [@property getter]
width
int width [@property getter]

Inherited Members

From Graphics

~this
~this()
Undocumented in source.
drawSizeGrip
void drawSizeGrip(int right, int bottom)
Undocumented in source. Be warned that the author may not have intended to support it.
drawMoveGrip
void drawMoveGrip(Rect movableArea, bool vSplit, size_t count)
Undocumented in source. Be warned that the author may not have intended to support it.
getCachedTextFormat
TextFormat getCachedTextFormat()
Undocumented in source. Be warned that the author may not have intended to support it.
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)
fillRectangle
void fillRectangle(Color color, Rect r)
Undocumented in source. Be warned that the author may not have intended to support it.
fillRectangle
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(HDC dest, int destX, int destY, int width, int height, int srcX, int srcY, DWORD rop)
Undocumented in source. Be warned that the author may not have intended to support it.
copyTo
bool copyTo(Graphics destGraphics, int destX, int destY, int width, int height, int srcX, int srcY, DWORD rop)
bool copyTo(Graphics destGraphics, Rect bounds)
handle
HDC handle [@property getter]
dispose
void dispose()

Meta