Canvas

The Canvas object is the DGui's rappresentation of a Device Context (Screen DC, Memory DC and Printer DC) $(DDOC_BLANKLINE) Note: Printer DC is not implemented

class Canvas : Handle!(HDC), IDisposable {}

Constructors

this
this(HDC hdc, bool owned, CanvasType type)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

copyTo
void copyTo(Canvas c, BitmapCopyMode bcm, Rect destRect, Point posSrc)
Undocumented in source. Be warned that the author may not have intended to support it.
copyTo
void copyTo(Canvas c, Rect destRect, Point posSrc)
Undocumented in source. Be warned that the author may not have intended to support it.
copyTo
void copyTo(Canvas c, BitmapCopyMode bcm, Rect destRect)
Undocumented in source. Be warned that the author may not have intended to support it.
copyTo
void copyTo(Canvas c, BitmapCopyMode bcm)
Undocumented in source. Be warned that the author may not have intended to support it.
copyTo
void copyTo(Canvas c)
Undocumented in source. Be warned that the author may not have intended to support it.
copyTransparent
void copyTransparent(Canvas c, Color transpColor)
Undocumented in source. Be warned that the author may not have intended to support it.
copyTransparent
void copyTransparent(Canvas c, Color transpColor, Rect r)
Undocumented in source. Be warned that the author may not have intended to support it.
createInMemory
Canvas createInMemory(Bitmap b)
Undocumented in source. Be warned that the author may not have intended to support it.
createInMemory
Canvas createInMemory()
Undocumented in source. Be warned that the author may not have intended to support it.
dispose
void dispose()
Undocumented in source. Be warned that the author may not have intended to support it.
drawEdge
void drawEdge(Rect r, EdgeType edgeType, EdgeMode edgeMode)
Undocumented in source. Be warned that the author may not have intended to support it.
drawEllipse
void drawEllipse(Pen pen, Brush fill, Rect r)
Undocumented in source. Be warned that the author may not have intended to support it.
drawEllipse
void drawEllipse(Pen pen, Rect r)
Undocumented in source. Be warned that the author may not have intended to support it.
drawFrameControl
void drawFrameControl(Rect r, FrameType frameType, FrameMode frameMode)
Undocumented in source. Be warned that the author may not have intended to support it.
drawImage
void drawImage(Image img, Point upLeft, Point upRight, Point lowLeft)
Undocumented in source. Be warned that the author may not have intended to support it.
drawImage
void drawImage(Image img, int x, int y, Point upLeft, Point upRight, Point lowLeft)
Undocumented in source. Be warned that the author may not have intended to support it.
drawImage
void drawImage(Image img, int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
drawImage
void drawImage(Image img, Rect r)
Undocumented in source. Be warned that the author may not have intended to support it.
drawLine
void drawLine(Pen p, int x1, int y1, int x2, int y2)
Undocumented in source. Be warned that the author may not have intended to support it.
drawRectangle
void drawRectangle(Pen pen, Brush fill, Rect r)
Undocumented in source. Be warned that the author may not have intended to support it.
drawRectangle
void drawRectangle(Pen pen, Rect r)
Undocumented in source. Be warned that the author may not have intended to support it.
drawText
void drawText(string text, Rect r, Color foreColor, Font font, TextFormat textFormat)
Undocumented in source. Be warned that the author may not have intended to support it.
drawText
void drawText(string text, Rect r, Color foreColor, Font font)
Undocumented in source. Be warned that the author may not have intended to support it.
drawText
void drawText(string text, Rect r, Color foreColor)
Undocumented in source. Be warned that the author may not have intended to support it.
drawText
void drawText(string text, Rect r, Font f, TextFormat tf)
Undocumented in source. Be warned that the author may not have intended to support it.
drawText
void drawText(string text, Rect r, TextFormat tf)
Undocumented in source. Be warned that the author may not have intended to support it.
drawText
void drawText(string text, Rect r, Font f)
Undocumented in source. Be warned that the author may not have intended to support it.
drawText
void drawText(string text, Rect r)
Undocumented in source. Be warned that the author may not have intended to support it.
fillEllipse
void fillEllipse(Brush b, Rect r)
Undocumented in source. Be warned that the author may not have intended to support it.
fillRectGradient
void fillRectGradient(Rect r, Color startColor, Color endColor, GradientFillRectMode gfrm)
Undocumented in source. Be warned that the author may not have intended to support it.
fillRectangle
void fillRectangle(Brush b, Rect r)
Undocumented in source. Be warned that the author may not have intended to support it.
fillTriangleGradient
void fillTriangleGradient(int x1, int y1, int x2, int y2, int x3, int y3, Color color1, Color color2, Color color3)
Undocumented in source. Be warned that the author may not have intended to support it.
fillTriangleGradient
void fillTriangleGradient(Point pt1, Point pt2, Point pt3, Color color1, Color color2, Color color3)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

fromHDC
Canvas fromHDC(HDC hdc, bool owned)
Undocumented in source. Be warned that the author may not have intended to support it.
measureString
Size measureString(string s, Canvas c, Font f)
Undocumented in source. Be warned that the author may not have intended to support it.
measureString
Size measureString(string s, Canvas c)
Undocumented in source. Be warned that the author may not have intended to support it.
measureString
Size measureString(string s, Font f)
Undocumented in source. Be warned that the author may not have intended to support it.
measureString
Size measureString(string s)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From IDisposable

dispose
void dispose()
Undocumented in source.

Meta