ReactOS 0.4.15-dev-7991-ge77da17
Graphics Class Reference

#include <gdiplusgraphics.h>

Inheritance diagram for Graphics:
Collaboration diagram for Graphics:

Public Member Functions

 Graphics (Image *image)
 
 Graphics (HDC hdc)
 
 Graphics (HDC hdc, HANDLE hdevice)
 
 Graphics (HWND hwnd, BOOL icm=FALSE)
 
 ~Graphics ()
 
Status AddMetafileComment (const BYTE *data, UINT sizeData)
 
GraphicsContainer BeginContainer ()
 
GraphicsContainer BeginContainer (const RectF &dstrect, const RectF &srcrect, Unit unit)
 
GraphicsContainer BeginContainer (const Rect &dstrect, const Rect &srcrect, Unit unit)
 
Status Clear (const Color &color)
 
Status DrawArc (const Pen *pen, const Rect &rect, REAL startAngle, REAL sweepAngle)
 
Status DrawArc (const Pen *pen, const RectF &rect, REAL startAngle, REAL sweepAngle)
 
Status DrawArc (const Pen *pen, REAL x, REAL y, REAL width, REAL height, REAL startAngle, REAL sweepAngle)
 
Status DrawArc (const Pen *pen, INT x, INT y, INT width, INT height, REAL startAngle, REAL sweepAngle)
 
Status DrawBezier (const Pen *pen, const Point &pt1, const Point &pt2, const Point &pt3, const Point &pt4)
 
Status DrawBezier (const Pen *pen, const PointF &pt1, const PointF &pt2, const PointF &pt3, const PointF &pt4)
 
Status DrawBezier (const Pen *pen, REAL x1, REAL y1, REAL x2, REAL y2, REAL x3, REAL y3, REAL x4, REAL y4)
 
Status DrawBezier (const Pen *pen, INT x1, INT y1, INT x2, INT y2, INT x3, INT y3, INT x4, INT y4)
 
Status DrawBeziers (const Pen *pen, const Point *points, INT count)
 
Status DrawBeziers (const Pen *pen, const PointF *points, INT count)
 
Status DrawCachedBitmap (CachedBitmap *cb, INT x, INT y)
 
Status DrawClosedCurve (const Pen *pen, const Point *points, INT count)
 
Status DrawClosedCurve (const Pen *pen, const PointF *points, INT count)
 
Status DrawClosedCurve (const Pen *pen, const PointF *points, INT count, REAL tension)
 
Status DrawClosedCurve (const Pen *pen, const Point *points, INT count, REAL tension)
 
Status DrawCurve (const Pen *pen, const Point *points, INT count)
 
Status DrawCurve (const Pen *pen, const PointF *points, INT count)
 
Status DrawCurve (const Pen *pen, const PointF *points, INT count, REAL tension)
 
Status DrawCurve (const Pen *pen, const Point *points, INT count, INT offset, INT numberOfSegments, REAL tension)
 
Status DrawCurve (const Pen *pen, const PointF *points, INT count, INT offset, INT numberOfSegments, REAL tension)
 
Status DrawCurve (const Pen *pen, const Point *points, INT count, REAL tension)
 
Status DrawDriverString (const UINT16 *text, INT length, const Font *font, const Brush *brush, const PointF *positions, INT flags, const Matrix *matrix)
 
Status DrawEllipse (const Pen *pen, const Rect &rect)
 
Status DrawEllipse (const Pen *pen, REAL x, REAL y, REAL width, REAL height)
 
Status DrawEllipse (const Pen *pen, const RectF &rect)
 
Status DrawEllipse (const Pen *pen, INT x, INT y, INT width, INT height)
 
Status DrawImage (Image *image, const Point *destPoints, INT count)
 
Status DrawImage (Image *image, INT x, INT y)
 
Status DrawImage (Image *image, const Point &point)
 
Status DrawImage (Image *image, REAL x, REAL y)
 
Status DrawImage (Image *image, const PointF &point)
 
Status DrawImage (Image *image, const PointF *destPoints, INT count)
 
Status DrawImage (Image *image, REAL x, REAL y, REAL srcx, REAL srcy, REAL srcwidth, REAL srcheight, Unit srcUnit)
 
Status DrawImage (Image *image, const RectF &rect)
 
Status DrawImage (Image *image, INT x, INT y, INT width, INT height)
 
Status DrawImage (Image *image, const PointF *destPoints, INT count, REAL srcx, REAL srcy, REAL srcwidth, REAL srcheight, Unit srcUnit, ImageAttributes *imageAttributes, DrawImageAbort callback, VOID *callbackData)
 
Status DrawImage (Image *image, const Rect &destRect, INT srcx, INT srcy, INT srcwidth, INT srcheight, Unit srcUnit, const ImageAttributes *imageAttributes=NULL, DrawImageAbort callback=NULL, VOID *callbackData=NULL)
 
Status DrawImage (Image *image, const Point *destPoints, INT count, INT srcx, INT srcy, INT srcwidth, INT srcheight, Unit srcUnit, ImageAttributes *imageAttributes=NULL, DrawImageAbort callback=NULL, VOID *callbackData=NULL)
 
Status DrawImage (Image *image, REAL x, REAL y, REAL width, REAL height)
 
Status DrawImage (Image *image, const Rect &rect)
 
Status DrawImage (Image *image, INT x, INT y, INT srcx, INT srcy, INT srcwidth, INT srcheight, Unit srcUnit)
 
Status DrawImage (Image *image, const RectF &destRect, REAL srcx, REAL srcy, REAL srcwidth, REAL srcheight, Unit srcUnit, ImageAttributes *imageAttributes=NULL, DrawImageAbort callback=NULL, VOID *callbackData=NULL)
 
Status DrawLine (const Pen *pen, const Point &pt1, const Point &pt2)
 
Status DrawLine (const Pen *pen, const PointF &pt1, const Point &pt2)
 
Status DrawLine (const Pen *pen, REAL x1, REAL y1, REAL x2, REAL y2)
 
Status DrawLine (const Pen *pen, INT x1, INT y1, INT x2, INT y2)
 
Status DrawLines (const Pen *pen, const Point *points, INT count)
 
Status DrawLines (const Pen *pen, const PointF *points, INT count)
 
Status DrawPath (const Pen *pen, const GraphicsPath *path)
 
Status DrawPie (const Pen *pen, const Rect &rect, REAL startAngle, REAL sweepAngle)
 
Status DrawPie (const Pen *pen, INT x, INT y, INT width, INT height, REAL startAngle, REAL sweepAngle)
 
Status DrawPie (const Pen *pen, REAL x, REAL y, REAL width, REAL height, REAL startAngle, REAL sweepAngle)
 
Status DrawPie (const Pen *pen, const RectF &rect, REAL startAngle, REAL sweepAngle)
 
Status DrawPolygon (const Pen *pen, const Point *points, INT count)
 
Status DrawPolygon (const Pen *pen, const PointF *points, INT count)
 
Status DrawRectangle (const Pen *pen, const Rect &rect)
 
Status DrawRectangle (const Pen *pen, INT x, INT y, INT width, INT height)
 
Status DrawRectangle (const Pen *pen, REAL x, REAL y, REAL width, REAL height)
 
Status DrawRectangle (const Pen *pen, const RectF &rect)
 
Status DrawRectangles (const Pen *pen, const Rect *rects, INT count)
 
Status DrawRectangles (const Pen *pen, const RectF *rects, INT count)
 
Status DrawString (const WCHAR *string, INT length, const Font *font, const RectF &layoutRect, const StringFormat *stringFormat, const Brush *brush)
 
Status DrawString (const WCHAR *string, INT length, const Font *font, const PointF &origin, const Brush *brush)
 
Status DrawString (const WCHAR *string, INT length, const Font *font, const PointF &origin, const StringFormat *stringFormat, const Brush *brush)
 
Status EndContainer (GraphicsContainer state)
 
Status EnumerateMetafile (const Metafile *metafile, const PointF &destPoint, EnumerateMetafileProc callback, VOID *callbackData=NULL, const ImageAttributes *imageAttributes=NULL)
 
Status EnumerateMetafile (const Metafile *metafile, const Point *destPoints, INT count, EnumerateMetafileProc callback, VOID *callbackData=NULL, const ImageAttributes *imageAttributes=NULL)
 
Status EnumerateMetafile (const Metafile *metafile, const Point &destPoint, const Rect &srcRect, Unit srcUnit, EnumerateMetafileProc callback, VOID *callbackData=NULL, const ImageAttributes *imageAttributes=NULL)
 
Status EnumerateMetafile (const Metafile *metafile, const PointF *destPoints, INT count, EnumerateMetafileProc callback, VOID *callbackData=NULL, const ImageAttributes *imageAttributes=NULL)
 
Status EnumerateMetafile (const Metafile *metafile, const Rect &destRect, EnumerateMetafileProc callback, VOID *callbackData=NULL, const ImageAttributes *imageAttributes=NULL)
 
Status EnumerateMetafile (const Metafile *metafile, const RectF &destRect, const RectF &srcRect, Unit srcUnit, EnumerateMetafileProc callback, VOID *callbackData=NULL, const ImageAttributes *imageAttributes=NULL)
 
Status EnumerateMetafile (const Metafile *metafile, const RectF &destRect, EnumerateMetafileProc callback, VOID *callbackData=NULL, const ImageAttributes *imageAttributes=NULL)
 
Status EnumerateMetafile (const Metafile *metafile, const PointF &destPoint, const RectF &srcRect, Unit srcUnit, EnumerateMetafileProc callback, VOID *callbackData=NULL, const ImageAttributes *imageAttributes=NULL)
 
Status EnumerateMetafile (const Metafile *metafile, const Point *destPoints, INT count, const Rect &srcRect, Unit srcUnit, EnumerateMetafileProc callback, VOID *callbackData=NULL, const ImageAttributes *imageAttributes=NULL)
 
Status EnumerateMetafile (const Metafile *metafile, const Rect &destRect, const Rect &srcRect, Unit srcUnit, EnumerateMetafileProc callback, VOID *callbackData=NULL, const ImageAttributes *imageAttributes=NULL)
 
Status EnumerateMetafile (const Metafile *metafile, const PointF *destPoints, INT count, const RectF &srcRect, Unit srcUnit, EnumerateMetafileProc callback, VOID *callbackData=NULL, const ImageAttributes *imageAttributes=NULL)
 
Status EnumerateMetafile (const Metafile *metafile, const Point &destPoint, EnumerateMetafileProc callback, VOID *callbackData=NULL, const ImageAttributes *imageAttributes=NULL)
 
Status ExcludeClip (const Rect &rect)
 
Status ExcludeClip (const RectF &rect)
 
Status ExcludeClip (const Region *region)
 
Status FillClosedCurve (const Brush *brush, const Point *points, INT count)
 
Status FillClosedCurve (const Brush *brush, const Point *points, INT count, FillMode fillMode, REAL tension)
 
Status FillClosedCurve (const Brush *brush, const PointF *points, INT count)
 
Status FillClosedCurve (const Brush *brush, const PointF *points, INT count, FillMode fillMode, REAL tension)
 
Status FillEllipse (const Brush *brush, const Rect &rect)
 
Status FillEllipse (const Brush *brush, REAL x, REAL y, REAL width, REAL height)
 
Status FillEllipse (const Brush *brush, const RectF &rect)
 
Status FillEllipse (const Brush *brush, INT x, INT y, INT width, INT height)
 
Status FillPath (const Brush *brush, const GraphicsPath *path)
 
Status FillPie (const Brush *brush, const Rect &rect, REAL startAngle, REAL sweepAngle)
 
Status FillPie (const Brush *brush, INT x, INT y, INT width, INT height, REAL startAngle, REAL sweepAngle)
 
Status FillPie (const Brush *brush, REAL x, REAL y, REAL width, REAL height, REAL startAngle, REAL sweepAngle)
 
Status FillPie (const Brush *brush, RectF &rect, REAL startAngle, REAL sweepAngle)
 
Status FillPolygon (const Brush *brush, const Point *points, INT count)
 
Status FillPolygon (const Brush *brush, const PointF *points, INT count)
 
Status FillPolygon (const Brush *brush, const Point *points, INT count, FillMode fillMode)
 
Status FillPolygon (const Brush *brush, const PointF *points, INT count, FillMode fillMode)
 
Status FillRectangle (const Brush *brush, const Rect &rect)
 
Status FillRectangle (const Brush *brush, const RectF &rect)
 
Status FillRectangle (const Brush *brush, REAL x, REAL y, REAL width, REAL height)
 
Status FillRectangle (const Brush *brush, INT x, INT y, INT width, INT height)
 
Status FillRectangles (const Brush *brush, const Rect *rects, INT count)
 
Status FillRectangles (const Brush *brush, const RectF *rects, INT count)
 
Status FillRegion (const Brush *brush, const Region *region)
 
VOID Flush (FlushIntention intention)
 
Status GetClip (Region *region) const
 
Status GetClipBounds (Rect *rect) const
 
Status GetClipBounds (RectF *rect) const
 
CompositingMode GetCompositingMode () const
 
CompositingQuality GetCompositingQuality () const
 
REAL GetDpiX () const
 
REAL GetDpiY () const
 
HDC GetHDC ()
 
InterpolationMode GetInterpolationMode () const
 
Status GetLastStatus () const
 
Status GetNearestColor (Color *color) const
 
REAL GetPageScale () const
 
Unit GetPageUnit () const
 
PixelOffsetMode GetPixelOffsetMode () const
 
Status GetRenderingOrigin (INT *x, INT *y) const
 
SmoothingMode GetSmoothingMode () const
 
UINT GetTextContrast () const
 
TextRenderingHint GetTextRenderingHint () const
 
UINT GetTextGammaValue () const
 
Status GetTransform (Matrix *matrix) const
 
Status GetVisibleClipBounds (Rect *rect) const
 
Status GetVisibleClipBounds (RectF *rect) const
 
Status IntersectClip (const Rect &rect)
 
Status IntersectClip (const Region *region)
 
Status IntersectClip (const RectF &rect)
 
BOOL IsClipEmpty () const
 
BOOL IsVisible (const Point &point) const
 
BOOL IsVisible (const Rect &rect) const
 
BOOL IsVisible (REAL x, REAL y) const
 
BOOL IsVisible (const RectF &rect) const
 
BOOL IsVisible (INT x, INT y, INT width, INT height) const
 
BOOL IsVisible (INT x, INT y) const
 
BOOL IsVisible (const PointF &point) const
 
BOOL IsVisible (REAL x, REAL y, REAL width, REAL height) const
 
BOOL IsVisibleClipEmpty () const
 
Status MeasureCharacterRanges (const WCHAR *string, INT length, const Font *font, const RectF &layoutRect, const StringFormat *stringFormat, INT regionCount, Region *regions) const
 
Status MeasureDriverString (const UINT16 *text, INT length, const Font *font, const PointF *positions, INT flags, const Matrix *matrix, RectF *boundingBox) const
 
Status MeasureString (const WCHAR *string, INT length, const Font *font, const RectF &layoutRect, RectF *boundingBox) const
 
Status MeasureString (const WCHAR *string, INT length, const Font *font, const PointF &origin, const StringFormat *stringFormat, RectF *boundingBox) const
 
Status MeasureString (const WCHAR *string, INT length, const Font *font, const RectF &layoutRect, const StringFormat *stringFormat, RectF *boundingBox, INT *codepointsFitted, INT *linesFilled) const
 
Status MeasureString (const WCHAR *string, INT length, const Font *font, const SizeF &layoutRectSize, const StringFormat *stringFormat, SizeF *size, INT *codepointsFitted, INT *linesFilled) const
 
Status MeasureString (const WCHAR *string, INT length, const Font *font, const PointF &origin, RectF *boundingBox) const
 
Status MultiplyTransform (Matrix *matrix, MatrixOrder order)
 
VOID ReleaseHDC (HDC hdc)
 
Status ResetClip ()
 
Status ResetTransform ()
 
Status Restore (GraphicsState gstate)
 
Status RotateTransform (REAL angle, MatrixOrder order=MatrixOrderPrepend)
 
GraphicsState Save ()
 
Status ScaleTransform (REAL sx, REAL sy, MatrixOrder order=MatrixOrderPrepend)
 
Status SetClip (const Graphics *g, CombineMode combineMode=CombineModeReplace)
 
Status SetClip (const GraphicsPath *path, CombineMode combineMode=CombineModeReplace)
 
Status SetClip (const Region *region, CombineMode combineMode=CombineModeReplace)
 
Status SetClip (const Rect &rect, CombineMode combineMode=CombineModeReplace)
 
Status SetClip (HRGN hRgn, CombineMode combineMode=CombineModeReplace)
 
Status SetClip (const RectF &rect, CombineMode combineMode=CombineModeReplace)
 
Status SetCompositingMode (CompositingMode compositingMode)
 
Status SetCompositingQuality (CompositingQuality compositingQuality)
 
Status SetInterpolationMode (InterpolationMode interpolationMode)
 
Status SetPageScale (REAL scale)
 
Status SetPageUnit (Unit unit)
 
Status SetPixelOffsetMode (PixelOffsetMode pixelOffsetMode)
 
Status SetRenderingOrigin (INT x, INT y)
 
Status SetSmoothingMode (SmoothingMode smoothingMode)
 
Status SetTextContrast (UINT contrast)
 
Status SetTextRenderingHint (TextRenderingHint newMode)
 
Status SetTransform (const Matrix *matrix)
 
Status TransformPoints (CoordinateSpace destSpace, CoordinateSpace srcSpace, Point *pts, INT count)
 
Status TransformPoints (CoordinateSpace destSpace, CoordinateSpace srcSpace, PointF *pts, INT count)
 
Status TranslateClip (INT dx, INT dy)
 
Status TranslateClip (REAL dx, REAL dy)
 
Status TranslateTransform (REAL dx, REAL dy, MatrixOrder order=MatrixOrderPrepend)
 
- Public Member Functions inherited from GdiplusBase
void operator delete (void *in_pVoid)
 
void operator delete[] (void *in_pVoid)
 
voidoperator new (size_t in_size)
 
voidoperator new[] (size_t in_size)
 

Static Public Member Functions

static GraphicsFromHDC (HDC hdc)
 
static GraphicsFromHDC (HDC hdc, HANDLE hDevice)
 
static GraphicsFromHWND (HWND hWnd, BOOL icm)
 
static GraphicsFromImage (Image *image)
 
static HPALETTE GetHalftonePalette ()
 

Protected Attributes

GpGraphicsnativeGraphics
 
Status lastStatus
 

Private Member Functions

Status SetStatus (Status status) const
 
VOID SetNativeGraphics (GpGraphics *graphics)
 

Friends

class Region
 
class Font
 
class Bitmap
 
class CachedBitmap
 
class ImageAttributes
 
GpGraphics *& getNat (const Graphics *graphics)
 

Detailed Description

Definition at line 22 of file gdiplusgraphics.h.

Constructor & Destructor Documentation

◆ Graphics() [1/4]

Graphics::Graphics ( Image image)
inline

Definition at line 31 of file gdiplusgraphics.h.

32 {
33 GpGraphics *graphics = NULL;
34 if (image)
35 {
36 lastStatus = DllExports::GdipGetImageGraphicsContext(getNat(image), &graphics);
37 }
38 SetNativeGraphics(graphics);
39 }
friend GpGraphics *& getNat(const Graphics *graphics)
VOID SetNativeGraphics(GpGraphics *graphics)
Status lastStatus
#define NULL
Definition: types.h:112

◆ Graphics() [2/4]

Graphics::Graphics ( HDC  hdc)
inline

Definition at line 41 of file gdiplusgraphics.h.

42 {
43 GpGraphics *graphics = NULL;
44 lastStatus = DllExports::GdipCreateFromHDC(hdc, &graphics);
45 SetNativeGraphics(graphics);
46 }
HDC hdc
Definition: main.c:9

◆ Graphics() [3/4]

Graphics::Graphics ( HDC  hdc,
HANDLE  hdevice 
)
inline

Definition at line 48 of file gdiplusgraphics.h.

49 {
50 GpGraphics *graphics = NULL;
51 lastStatus = DllExports::GdipCreateFromHDC2(hdc, hdevice, &graphics);
52 SetNativeGraphics(graphics);
53 }

◆ Graphics() [4/4]

Graphics::Graphics ( HWND  hwnd,
BOOL  icm = FALSE 
)
inline

Definition at line 55 of file gdiplusgraphics.h.

56 {
57 GpGraphics *graphics = NULL;
58 if (icm)
59 {
60 lastStatus = DllExports::GdipCreateFromHWNDICM(hwnd, &graphics);
61 }
62 else
63 {
64 lastStatus = DllExports::GdipCreateFromHWND(hwnd, &graphics);
65 }
66 SetNativeGraphics(graphics);
67 }
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023

◆ ~Graphics()

Graphics::~Graphics ( )
inline

Definition at line 69 of file gdiplusgraphics.h.

70 {
71 DllExports::GdipDeleteGraphics(nativeGraphics);
72 }
GpGraphics * nativeGraphics

Member Function Documentation

◆ AddMetafileComment()

Status Graphics::AddMetafileComment ( const BYTE data,
UINT  sizeData 
)
inline

Definition at line 75 of file gdiplusgraphics.h.

76 {
77 return SetStatus(DllExports::GdipComment(nativeGraphics, sizeData, data));
78 }
Status SetStatus(Status status) const
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950

◆ BeginContainer() [1/3]

GraphicsContainer Graphics::BeginContainer ( )
inline

Definition at line 81 of file gdiplusgraphics.h.

82 {
83 return GraphicsContainer();
84 }
UINT GraphicsContainer
Definition: gdiplusenums.h:23

◆ BeginContainer() [2/3]

GraphicsContainer Graphics::BeginContainer ( const Rect dstrect,
const Rect srcrect,
Unit  unit 
)
inline

Definition at line 93 of file gdiplusgraphics.h.

94 {
95 return GraphicsContainer();
96 }

◆ BeginContainer() [3/3]

GraphicsContainer Graphics::BeginContainer ( const RectF dstrect,
const RectF srcrect,
Unit  unit 
)
inline

Definition at line 87 of file gdiplusgraphics.h.

88 {
89 return GraphicsContainer();
90 }

◆ Clear()

Status Graphics::Clear ( const Color color)
inline

Definition at line 99 of file gdiplusgraphics.h.

100 {
101 return SetStatus(DllExports::GdipGraphicsClear(nativeGraphics, color.GetValue()));
102 }
GLuint color
Definition: glext.h:6243

◆ DrawArc() [1/4]

Status Graphics::DrawArc ( const Pen pen,
const Rect rect,
REAL  startAngle,
REAL  sweepAngle 
)
inline

Definition at line 105 of file gdiplusgraphics.h.

106 {
107 return SetStatus(DllExports::GdipDrawArcI(
108 nativeGraphics, pen ? getNat(pen) : NULL, rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle));
109 }
& rect
Definition: startmenu.cpp:1413

◆ DrawArc() [2/4]

Status Graphics::DrawArc ( const Pen pen,
const RectF rect,
REAL  startAngle,
REAL  sweepAngle 
)
inline

Definition at line 112 of file gdiplusgraphics.h.

113 {
114 return SetStatus(DllExports::GdipDrawArcI(
115 nativeGraphics, pen ? getNat(pen) : NULL, rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle));
116 }

◆ DrawArc() [3/4]

Status Graphics::DrawArc ( const Pen pen,
INT  x,
INT  y,
INT  width,
INT  height,
REAL  startAngle,
REAL  sweepAngle 
)
inline

Definition at line 126 of file gdiplusgraphics.h.

127 {
128 return SetStatus(DllExports::GdipDrawArcI(
129 nativeGraphics, pen ? getNat(pen) : NULL, x, y, width, height, startAngle, sweepAngle));
130 }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
GLint GLint GLsizei GLsizei height
Definition: gl.h:1546
GLint GLint GLsizei width
Definition: gl.h:1546

◆ DrawArc() [4/4]

Status Graphics::DrawArc ( const Pen pen,
REAL  x,
REAL  y,
REAL  width,
REAL  height,
REAL  startAngle,
REAL  sweepAngle 
)
inline

Definition at line 119 of file gdiplusgraphics.h.

120 {
121 return SetStatus(DllExports::GdipDrawArc(
122 nativeGraphics, pen ? getNat(pen) : NULL, x, y, width, height, startAngle, sweepAngle));
123 }

◆ DrawBezier() [1/4]

Status Graphics::DrawBezier ( const Pen pen,
const Point pt1,
const Point pt2,
const Point pt3,
const Point pt4 
)
inline

Definition at line 133 of file gdiplusgraphics.h.

134 {
135 return SetStatus(DllExports::GdipDrawBezierI(
136 nativeGraphics, pen ? getNat(pen) : NULL, pt1.X, pt1.Y, pt2.X, pt2.Y, pt3.X, pt3.Y, pt4.X, pt4.Y));
137 }

◆ DrawBezier() [2/4]

Status Graphics::DrawBezier ( const Pen pen,
const PointF pt1,
const PointF pt2,
const PointF pt3,
const PointF pt4 
)
inline

Definition at line 140 of file gdiplusgraphics.h.

141 {
142 return SetStatus(DllExports::GdipDrawBezier(
143 nativeGraphics, pen ? getNat(pen) : NULL, pt1.X, pt1.Y, pt2.X, pt2.Y, pt3.X, pt3.Y, pt4.X, pt4.Y));
144 }
REAL Y
Definition: gdiplustypes.h:649
REAL X
Definition: gdiplustypes.h:648

◆ DrawBezier() [3/4]

Status Graphics::DrawBezier ( const Pen pen,
INT  x1,
INT  y1,
INT  x2,
INT  y2,
INT  x3,
INT  y3,
INT  x4,
INT  y4 
)
inline

Definition at line 154 of file gdiplusgraphics.h.

155 {
156 return SetStatus(
157 DllExports::GdipDrawBezierI(nativeGraphics, pen ? getNat(pen) : NULL, x1, y1, x2, y2, x3, y3, x4, y4));
158 }
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG x2
Definition: winddi.h:3710
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG y1
Definition: winddi.h:3709
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG x1
Definition: winddi.h:3708
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG _In_ LONG y2
Definition: winddi.h:3711

◆ DrawBezier() [4/4]

Status Graphics::DrawBezier ( const Pen pen,
REAL  x1,
REAL  y1,
REAL  x2,
REAL  y2,
REAL  x3,
REAL  y3,
REAL  x4,
REAL  y4 
)
inline

Definition at line 147 of file gdiplusgraphics.h.

148 {
149 return SetStatus(
150 DllExports::GdipDrawBezier(nativeGraphics, pen ? getNat(pen) : NULL, x1, y1, x2, y2, x3, y3, x4, y4));
151 }

◆ DrawBeziers() [1/2]

Status Graphics::DrawBeziers ( const Pen pen,
const Point points,
INT  count 
)
inline

Definition at line 161 of file gdiplusgraphics.h.

162 {
163 return SetStatus(DllExports::GdipDrawBeziersI(nativeGraphics, pen ? getNat(pen) : NULL, points, count));
164 }
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLsizei const GLfloat * points
Definition: glext.h:8112

◆ DrawBeziers() [2/2]

Status Graphics::DrawBeziers ( const Pen pen,
const PointF points,
INT  count 
)
inline

Definition at line 167 of file gdiplusgraphics.h.

168 {
169 return SetStatus(DllExports::GdipDrawBeziers(nativeGraphics, pen ? getNat(pen) : NULL, points, count));
170 }

◆ DrawCachedBitmap()

Status Graphics::DrawCachedBitmap ( CachedBitmap cb,
INT  x,
INT  y 
)
inline

Definition at line 173 of file gdiplusgraphics.h.

174 {
175 return SetStatus(DllExports::GdipDrawCachedBitmap(nativeGraphics, getNat(cb), x, y));
176 }
static HMODULE MODULEINFO DWORD cb
Definition: module.c:33

◆ DrawClosedCurve() [1/4]

Status Graphics::DrawClosedCurve ( const Pen pen,
const Point points,
INT  count 
)
inline

Definition at line 179 of file gdiplusgraphics.h.

180 {
181 return SetStatus(DllExports::GdipDrawClosedCurveI(nativeGraphics, pen ? getNat(pen) : NULL, points, count));
182 }

◆ DrawClosedCurve() [2/4]

Status Graphics::DrawClosedCurve ( const Pen pen,
const Point points,
INT  count,
REAL  tension 
)
inline

Definition at line 198 of file gdiplusgraphics.h.

199 {
200 return SetStatus(
201 DllExports::GdipDrawClosedCurve2I(nativeGraphics, pen ? getNat(pen) : NULL, points, count, tension));
202 }

◆ DrawClosedCurve() [3/4]

Status Graphics::DrawClosedCurve ( const Pen pen,
const PointF points,
INT  count 
)
inline

Definition at line 185 of file gdiplusgraphics.h.

186 {
187 return SetStatus(DllExports::GdipDrawClosedCurve(nativeGraphics, pen ? getNat(pen) : NULL, points, count));
188 }

◆ DrawClosedCurve() [4/4]

Status Graphics::DrawClosedCurve ( const Pen pen,
const PointF points,
INT  count,
REAL  tension 
)
inline

Definition at line 191 of file gdiplusgraphics.h.

192 {
193 return SetStatus(
194 DllExports::GdipDrawClosedCurve2(nativeGraphics, pen ? getNat(pen) : NULL, points, count, tension));
195 }

◆ DrawCurve() [1/6]

Status Graphics::DrawCurve ( const Pen pen,
const Point points,
INT  count 
)
inline

Definition at line 205 of file gdiplusgraphics.h.

206 {
207 return SetStatus(DllExports::GdipDrawCurveI(nativeGraphics, pen ? getNat(pen) : NULL, points, count));
208 }

◆ DrawCurve() [2/6]

Status Graphics::DrawCurve ( const Pen pen,
const Point points,
INT  count,
INT  offset,
INT  numberOfSegments,
REAL  tension 
)
inline

Definition at line 223 of file gdiplusgraphics.h.

224 {
225 return SetStatus(DllExports::GdipDrawCurve3I(
226 nativeGraphics, pen ? getNat(pen) : NULL, points, count, offset, numberOfSegments, tension));
227 }
GLintptr offset
Definition: glext.h:5920

◆ DrawCurve() [3/6]

Status Graphics::DrawCurve ( const Pen pen,
const Point points,
INT  count,
REAL  tension 
)
inline

Definition at line 237 of file gdiplusgraphics.h.

238 {
239 return SetStatus(DllExports::GdipDrawCurve2I(nativeGraphics, pen ? getNat(pen) : NULL, points, count, tension));
240 }

◆ DrawCurve() [4/6]

Status Graphics::DrawCurve ( const Pen pen,
const PointF points,
INT  count 
)
inline

Definition at line 211 of file gdiplusgraphics.h.

212 {
213 return SetStatus(DllExports::GdipDrawCurve(nativeGraphics, pen ? getNat(pen) : NULL, points, count));
214 }

◆ DrawCurve() [5/6]

Status Graphics::DrawCurve ( const Pen pen,
const PointF points,
INT  count,
INT  offset,
INT  numberOfSegments,
REAL  tension 
)
inline

Definition at line 230 of file gdiplusgraphics.h.

231 {
232 return SetStatus(DllExports::GdipDrawCurve3(
233 nativeGraphics, pen ? getNat(pen) : NULL, points, count, offset, numberOfSegments, tension));
234 }

◆ DrawCurve() [6/6]

Status Graphics::DrawCurve ( const Pen pen,
const PointF points,
INT  count,
REAL  tension 
)
inline

Definition at line 217 of file gdiplusgraphics.h.

218 {
219 return SetStatus(DllExports::GdipDrawCurve2(nativeGraphics, pen ? getNat(pen) : NULL, points, count, tension));
220 }

◆ DrawDriverString()

Status Graphics::DrawDriverString ( const UINT16 text,
INT  length,
const Font font,
const Brush brush,
const PointF positions,
INT  flags,
const Matrix matrix 
)
inline

Definition at line 243 of file gdiplusgraphics.h.

251 {
252 return SetStatus(DllExports::GdipDrawDriverString(
253 nativeGraphics, text, length, font ? getNat(font) : NULL, brush ? getNat(brush) : NULL, positions, flags,
254 matrix ? getNat(matrix) : NULL));
255 }
const WCHAR * text
Definition: package.c:1799
GLuint GLenum matrix
Definition: glext.h:9407
GLbitfield flags
Definition: glext.h:7161
GLuint GLsizei GLsizei * length
Definition: glext.h:6040
Definition: mk_font.cpp:20

◆ DrawEllipse() [1/4]

Status Graphics::DrawEllipse ( const Pen pen,
const Rect rect 
)
inline

Definition at line 258 of file gdiplusgraphics.h.

259 {
260 return SetStatus(DllExports::GdipDrawEllipseI(
261 nativeGraphics, pen ? getNat(pen) : NULL, rect.X, rect.Y, rect.Width, rect.Height));
262 }

◆ DrawEllipse() [2/4]

Status Graphics::DrawEllipse ( const Pen pen,
const RectF rect 
)
inline

Definition at line 271 of file gdiplusgraphics.h.

272 {
273 return SetStatus(DllExports::GdipDrawEllipse(
274 nativeGraphics, pen ? getNat(pen) : NULL, rect.X, rect.Y, rect.Width, rect.Height));
275 }

◆ DrawEllipse() [3/4]

Status Graphics::DrawEllipse ( const Pen pen,
INT  x,
INT  y,
INT  width,
INT  height 
)
inline

Definition at line 278 of file gdiplusgraphics.h.

279 {
280 return SetStatus(DllExports::GdipDrawEllipseI(nativeGraphics, pen ? getNat(pen) : NULL, x, y, width, height));
281 }

◆ DrawEllipse() [4/4]

Status Graphics::DrawEllipse ( const Pen pen,
REAL  x,
REAL  y,
REAL  width,
REAL  height 
)
inline

Definition at line 265 of file gdiplusgraphics.h.

266 {
267 return SetStatus(DllExports::GdipDrawEllipse(nativeGraphics, pen ? getNat(pen) : NULL, x, y, width, height));
268 }

◆ DrawImage() [1/16]

Status Graphics::DrawImage ( Image image,
const Point point 
)
inline

Definition at line 300 of file gdiplusgraphics.h.

301 {
302 return DrawImage(image, point.X, point.Y);
303 }
Status DrawImage(Image *image, const Point *destPoints, INT count)
POINTL point
Definition: edittest.c:50

◆ DrawImage() [2/16]

Status Graphics::DrawImage ( Image image,
const Point destPoints,
INT  count 
)
inline

Definition at line 284 of file gdiplusgraphics.h.

285 {
286 if (count != 3 && count != 4)
288
289 return SetStatus(
290 DllExports::GdipDrawImagePointsI(nativeGraphics, image ? getNat(image) : NULL, destPoints, count));
291 }
@ InvalidParameter
Definition: gdiplustypes.h:28

Referenced by DrawImage(), and CAppScrnshotPreview::PaintOnDC().

◆ DrawImage() [3/16]

Status Graphics::DrawImage ( Image image,
const Point destPoints,
INT  count,
INT  srcx,
INT  srcy,
INT  srcwidth,
INT  srcheight,
Unit  srcUnit,
ImageAttributes imageAttributes = NULL,
DrawImageAbort  callback = NULL,
VOID callbackData = NULL 
)
inline

Definition at line 386 of file gdiplusgraphics.h.

398 {
399 return SetStatus(DllExports::GdipDrawImagePointsRectI(
400 nativeGraphics, image ? getNat(image) : NULL, destPoints, count, srcx, srcy, srcwidth, srcheight, srcUnit,
401 imageAttributes ? getNat(imageAttributes) : NULL, callback, callbackData));
402 }
static IPrintDialogCallback callback
Definition: printdlg.c:326

◆ DrawImage() [4/16]

Status Graphics::DrawImage ( Image image,
const PointF point 
)
inline

Definition at line 312 of file gdiplusgraphics.h.

313 {
314 return DrawImage(image, point.X, point.Y);
315 }

◆ DrawImage() [5/16]

Status Graphics::DrawImage ( Image image,
const PointF destPoints,
INT  count 
)
inline

Definition at line 318 of file gdiplusgraphics.h.

319 {
320 if (count != 3 && count != 4)
322
323 return SetStatus(
324 DllExports::GdipDrawImagePoints(nativeGraphics, image ? getNat(image) : NULL, destPoints, count));
325 }

◆ DrawImage() [6/16]

Status Graphics::DrawImage ( Image image,
const PointF destPoints,
INT  count,
REAL  srcx,
REAL  srcy,
REAL  srcwidth,
REAL  srcheight,
Unit  srcUnit,
ImageAttributes imageAttributes,
DrawImageAbort  callback,
VOID callbackData 
)
inline

Definition at line 348 of file gdiplusgraphics.h.

360 {
361 return SetStatus(DllExports::GdipDrawImagePointsRect(
362 nativeGraphics, image ? getNat(image) : NULL, destPoints, count, srcx, srcy, srcwidth, srcheight, srcUnit,
363 imageAttributes ? getNat(imageAttributes) : NULL, callback, callbackData));
364 }

◆ DrawImage() [7/16]

Status Graphics::DrawImage ( Image image,
const Rect destRect,
INT  srcx,
INT  srcy,
INT  srcwidth,
INT  srcheight,
Unit  srcUnit,
const ImageAttributes imageAttributes = NULL,
DrawImageAbort  callback = NULL,
VOID callbackData = NULL 
)
inline

Definition at line 367 of file gdiplusgraphics.h.

378 {
379 return SetStatus(DllExports::GdipDrawImageRectRectI(
380 nativeGraphics, image ? getNat(image) : NULL, destRect.X, destRect.Y, destRect.Width, destRect.Height, srcx,
381 srcy, srcwidth, srcheight, srcUnit, imageAttributes ? getNat(imageAttributes) : NULL, callback,
382 callbackData));
383 }
INT Width
Definition: gdiplustypes.h:671
INT Height
Definition: gdiplustypes.h:672
INT X
Definition: gdiplustypes.h:669
INT Y
Definition: gdiplustypes.h:670

◆ DrawImage() [8/16]

Status Graphics::DrawImage ( Image image,
const Rect rect 
)
inline

Definition at line 412 of file gdiplusgraphics.h.

413 {
414 return DrawImage(image, rect.X, rect.Y, rect.Width, rect.Height);
415 }

◆ DrawImage() [9/16]

Status Graphics::DrawImage ( Image image,
const RectF destRect,
REAL  srcx,
REAL  srcy,
REAL  srcwidth,
REAL  srcheight,
Unit  srcUnit,
ImageAttributes imageAttributes = NULL,
DrawImageAbort  callback = NULL,
VOID callbackData = NULL 
)
inline

Definition at line 425 of file gdiplusgraphics.h.

436 {
437 return SetStatus(DllExports::GdipDrawImageRectRect(
438 nativeGraphics, image ? getNat(image) : NULL, destRect.X, destRect.Y, destRect.Width, destRect.Height, srcx,
439 srcy, srcwidth, srcheight, srcUnit, imageAttributes ? getNat(imageAttributes) : NULL, callback,
440 callbackData));
441 }
REAL Height
Definition: gdiplustypes.h:664
REAL X
Definition: gdiplustypes.h:661
REAL Width
Definition: gdiplustypes.h:663
REAL Y
Definition: gdiplustypes.h:662

◆ DrawImage() [10/16]

Status Graphics::DrawImage ( Image image,
const RectF rect 
)
inline

Definition at line 335 of file gdiplusgraphics.h.

336 {
337 return DrawImage(image, rect.X, rect.Y, rect.Width, rect.Height);
338 }

◆ DrawImage() [11/16]

Status Graphics::DrawImage ( Image image,
INT  x,
INT  y 
)
inline

Definition at line 294 of file gdiplusgraphics.h.

295 {
296 return SetStatus(DllExports::GdipDrawImageI(nativeGraphics, image ? getNat(image) : NULL, x, y));
297 }

◆ DrawImage() [12/16]

Status Graphics::DrawImage ( Image image,
INT  x,
INT  y,
INT  srcx,
INT  srcy,
INT  srcwidth,
INT  srcheight,
Unit  srcUnit 
)
inline

Definition at line 418 of file gdiplusgraphics.h.

419 {
420 return SetStatus(DllExports::GdipDrawImagePointRectI(
421 nativeGraphics, image ? getNat(image) : NULL, x, y, srcx, srcy, srcwidth, srcheight, srcUnit));
422 }

◆ DrawImage() [13/16]

Status Graphics::DrawImage ( Image image,
INT  x,
INT  y,
INT  width,
INT  height 
)
inline

Definition at line 341 of file gdiplusgraphics.h.

342 {
343 return SetStatus(
344 DllExports::GdipDrawImageRectI(nativeGraphics, image ? getNat(image) : NULL, x, y, width, height));
345 }

◆ DrawImage() [14/16]

Status Graphics::DrawImage ( Image image,
REAL  x,
REAL  y 
)
inline

Definition at line 306 of file gdiplusgraphics.h.

307 {
308 return SetStatus(DllExports::GdipDrawImage(nativeGraphics, image ? getNat(image) : NULL, x, y));
309 }

◆ DrawImage() [15/16]

Status Graphics::DrawImage ( Image image,
REAL  x,
REAL  y,
REAL  srcx,
REAL  srcy,
REAL  srcwidth,
REAL  srcheight,
Unit  srcUnit 
)
inline

Definition at line 328 of file gdiplusgraphics.h.

329 {
330 return SetStatus(DllExports::GdipDrawImagePointRect(
331 nativeGraphics, image ? getNat(image) : NULL, x, y, srcx, srcy, srcwidth, srcheight, srcUnit));
332 }

◆ DrawImage() [16/16]

Status Graphics::DrawImage ( Image image,
REAL  x,
REAL  y,
REAL  width,
REAL  height 
)
inline

Definition at line 405 of file gdiplusgraphics.h.

406 {
407 return SetStatus(
408 DllExports::GdipDrawImageRect(nativeGraphics, image ? getNat(image) : NULL, x, y, width, height));
409 }

◆ DrawLine() [1/4]

Status Graphics::DrawLine ( const Pen pen,
const Point pt1,
const Point pt2 
)
inline

Definition at line 444 of file gdiplusgraphics.h.

445 {
446 return SetStatus(
447 DllExports::GdipDrawLineI(nativeGraphics, pen ? getNat(pen) : NULL, pt1.X, pt1.Y, pt2.X, pt2.Y));
448 }

◆ DrawLine() [2/4]

Status Graphics::DrawLine ( const Pen pen,
const PointF pt1,
const Point pt2 
)
inline

Definition at line 451 of file gdiplusgraphics.h.

452 {
453 return SetStatus(
454 DllExports::GdipDrawLine(nativeGraphics, pen ? getNat(pen) : NULL, pt1.X, pt1.Y, pt2.X, pt2.Y));
455 }

◆ DrawLine() [3/4]

Status Graphics::DrawLine ( const Pen pen,
INT  x1,
INT  y1,
INT  x2,
INT  y2 
)
inline

Definition at line 464 of file gdiplusgraphics.h.

465 {
466 return SetStatus(DllExports::GdipDrawLine(nativeGraphics, pen ? getNat(pen) : NULL, x1, y1, x2, y2));
467 }

◆ DrawLine() [4/4]

Status Graphics::DrawLine ( const Pen pen,
REAL  x1,
REAL  y1,
REAL  x2,
REAL  y2 
)
inline

Definition at line 458 of file gdiplusgraphics.h.

459 {
460 return SetStatus(DllExports::GdipDrawLine(nativeGraphics, pen ? getNat(pen) : NULL, x1, y1, x2, y2));
461 }

◆ DrawLines() [1/2]

Status Graphics::DrawLines ( const Pen pen,
const Point points,
INT  count 
)
inline

Definition at line 470 of file gdiplusgraphics.h.

471 {
472 return SetStatus(DllExports::GdipDrawLinesI(nativeGraphics, pen ? getNat(pen) : NULL, points, count));
473 }

◆ DrawLines() [2/2]

Status Graphics::DrawLines ( const Pen pen,
const PointF points,
INT  count 
)
inline

Definition at line 476 of file gdiplusgraphics.h.

477 {
478 return SetStatus(DllExports::GdipDrawLines(nativeGraphics, pen ? getNat(pen) : NULL, points, count));
479 }

◆ DrawPath()

Status Graphics::DrawPath ( const Pen pen,
const GraphicsPath path 
)
inline

Definition at line 482 of file gdiplusgraphics.h.

483 {
484 return SetStatus(
485 DllExports::GdipDrawPath(nativeGraphics, pen ? getNat(pen) : NULL, path ? getNat(path) : NULL));
486 }

◆ DrawPie() [1/4]

Status Graphics::DrawPie ( const Pen pen,
const Rect rect,
REAL  startAngle,
REAL  sweepAngle 
)
inline

Definition at line 489 of file gdiplusgraphics.h.

490 {
491 return SetStatus(DllExports::GdipDrawPieI(
492 nativeGraphics, pen ? getNat(pen) : NULL, rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle));
493 }

◆ DrawPie() [2/4]

Status Graphics::DrawPie ( const Pen pen,
const RectF rect,
REAL  startAngle,
REAL  sweepAngle 
)
inline

Definition at line 510 of file gdiplusgraphics.h.

511 {
512 return SetStatus(DllExports::GdipDrawPie(
513 nativeGraphics, pen ? getNat(pen) : NULL, rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle));
514 }

◆ DrawPie() [3/4]

Status Graphics::DrawPie ( const Pen pen,
INT  x,
INT  y,
INT  width,
INT  height,
REAL  startAngle,
REAL  sweepAngle 
)
inline

Definition at line 496 of file gdiplusgraphics.h.

497 {
498 return SetStatus(DllExports::GdipDrawPieI(
499 nativeGraphics, pen ? getNat(pen) : NULL, x, y, width, height, startAngle, sweepAngle));
500 }

◆ DrawPie() [4/4]

Status Graphics::DrawPie ( const Pen pen,
REAL  x,
REAL  y,
REAL  width,
REAL  height,
REAL  startAngle,
REAL  sweepAngle 
)
inline

Definition at line 503 of file gdiplusgraphics.h.

504 {
505 return SetStatus(DllExports::GdipDrawPie(
506 nativeGraphics, pen ? getNat(pen) : NULL, x, y, width, height, startAngle, sweepAngle));
507 }

◆ DrawPolygon() [1/2]

Status Graphics::DrawPolygon ( const Pen pen,
const Point points,
INT  count 
)
inline

Definition at line 517 of file gdiplusgraphics.h.

518 {
519 return SetStatus(DllExports::GdipDrawPolygonI(nativeGraphics, pen ? getNat(pen) : NULL, points, count));
520 }

◆ DrawPolygon() [2/2]

Status Graphics::DrawPolygon ( const Pen pen,
const PointF points,
INT  count 
)
inline

Definition at line 523 of file gdiplusgraphics.h.

524 {
525 return SetStatus(DllExports::GdipDrawPolygon(nativeGraphics, pen ? getNat(pen) : NULL, points, count));
526 }

◆ DrawRectangle() [1/4]

Status Graphics::DrawRectangle ( const Pen pen,
const Rect rect 
)
inline

Definition at line 529 of file gdiplusgraphics.h.

530 {
531 return SetStatus(DllExports::GdipDrawRectangleI(
532 nativeGraphics, pen ? getNat(pen) : NULL, rect.X, rect.Y, rect.Width, rect.Height));
533 }

◆ DrawRectangle() [2/4]

Status Graphics::DrawRectangle ( const Pen pen,
const RectF rect 
)
inline

Definition at line 548 of file gdiplusgraphics.h.

549 {
550 return SetStatus(DllExports::GdipDrawRectangleI(
551 nativeGraphics, pen ? getNat(pen) : NULL, rect.X, rect.Y, rect.Width, rect.Height));
552 }

◆ DrawRectangle() [3/4]

Status Graphics::DrawRectangle ( const Pen pen,
INT  x,
INT  y,
INT  width,
INT  height 
)
inline

Definition at line 536 of file gdiplusgraphics.h.

537 {
538 return SetStatus(DllExports::GdipDrawRectangleI(nativeGraphics, pen ? getNat(pen) : NULL, x, y, width, height));
539 }

◆ DrawRectangle() [4/4]

Status Graphics::DrawRectangle ( const Pen pen,
REAL  x,
REAL  y,
REAL  width,
REAL  height 
)
inline

Definition at line 542 of file gdiplusgraphics.h.

543 {
544 return SetStatus(DllExports::GdipDrawRectangle(nativeGraphics, pen ? getNat(pen) : NULL, x, y, width, height));
545 }

◆ DrawRectangles() [1/2]

Status Graphics::DrawRectangles ( const Pen pen,
const Rect rects,
INT  count 
)
inline

Definition at line 555 of file gdiplusgraphics.h.

556 {
557 return SetStatus(DllExports::GdipDrawRectanglesI(nativeGraphics, pen ? getNat(pen) : NULL, rects, count));
558 }

◆ DrawRectangles() [2/2]

Status Graphics::DrawRectangles ( const Pen pen,
const RectF rects,
INT  count 
)
inline

Definition at line 561 of file gdiplusgraphics.h.

562 {
563 return SetStatus(DllExports::GdipDrawRectangles(nativeGraphics, pen ? getNat(pen) : NULL, rects, count));
564 }

◆ DrawString() [1/3]

Status Graphics::DrawString ( const WCHAR string,
INT  length,
const Font font,
const PointF origin,
const Brush brush 
)
inline

Definition at line 581 of file gdiplusgraphics.h.

582 {
583 RectF rect(origin.X, origin.Y, 0.0f, 0.0f);
584 return SetStatus(DllExports::GdipDrawString(
585 nativeGraphics, string, length, font ? getNat(font) : NULL, &rect, NULL, brush ? getNat(brush) : NULL));
586 }
voidpf uLong int origin
Definition: ioapi.h:144

◆ DrawString() [2/3]

Status Graphics::DrawString ( const WCHAR string,
INT  length,
const Font font,
const PointF origin,
const StringFormat stringFormat,
const Brush brush 
)
inline

Definition at line 589 of file gdiplusgraphics.h.

596 {
597 RectF rect(origin.X, origin.Y, 0.0f, 0.0f);
598 return SetStatus(DllExports::GdipDrawString(
599 nativeGraphics, string, length, font ? getNat(font) : NULL, &rect,
600 stringFormat ? getNat(stringFormat) : NULL, brush ? getNat(brush) : NULL));
601 }
static const WCHAR stringFormat[]
Definition: wordpad.c:55

◆ DrawString() [3/3]

Status Graphics::DrawString ( const WCHAR string,
INT  length,
const Font font,
const RectF layoutRect,
const StringFormat stringFormat,
const Brush brush 
)
inline

Definition at line 567 of file gdiplusgraphics.h.

574 {
575 return SetStatus(DllExports::GdipDrawString(
576 nativeGraphics, string, length, font ? getNat(font) : NULL, &layoutRect,
577 stringFormat ? getNat(stringFormat) : NULL, brush ? brush->nativeBrush : NULL));
578 }
GpBrush * nativeBrush
Definition: gdiplusbrush.h:64

◆ EndContainer()

Status Graphics::EndContainer ( GraphicsContainer  state)
inline

Definition at line 604 of file gdiplusgraphics.h.

605 {
606 return SetStatus(DllExports::GdipEndContainer(nativeGraphics, state));
607 }
static int state
Definition: maze.c:121

◆ EnumerateMetafile() [1/12]

Status Graphics::EnumerateMetafile ( const Metafile metafile,
const Point destPoint,
const Rect srcRect,
Unit  srcUnit,
EnumerateMetafileProc  callback,
VOID callbackData = NULL,
const ImageAttributes imageAttributes = NULL 
)
inline

Definition at line 633 of file gdiplusgraphics.h.

641 {
643 }
@ NotImplemented
Definition: gdiplustypes.h:32

◆ EnumerateMetafile() [2/12]

Status Graphics::EnumerateMetafile ( const Metafile metafile,
const Point destPoint,
EnumerateMetafileProc  callback,
VOID callbackData = NULL,
const ImageAttributes imageAttributes = NULL 
)
inline

Definition at line 747 of file gdiplusgraphics.h.

753 {
755 }

◆ EnumerateMetafile() [3/12]

Status Graphics::EnumerateMetafile ( const Metafile metafile,
const Point destPoints,
INT  count,
const Rect srcRect,
Unit  srcUnit,
EnumerateMetafileProc  callback,
VOID callbackData = NULL,
const ImageAttributes imageAttributes = NULL 
)
inline

Definition at line 706 of file gdiplusgraphics.h.

715 {
717 }

◆ EnumerateMetafile() [4/12]

Status Graphics::EnumerateMetafile ( const Metafile metafile,
const Point destPoints,
INT  count,
EnumerateMetafileProc  callback,
VOID callbackData = NULL,
const ImageAttributes imageAttributes = NULL 
)
inline

Definition at line 621 of file gdiplusgraphics.h.

628 {
630 }

◆ EnumerateMetafile() [5/12]

Status Graphics::EnumerateMetafile ( const Metafile metafile,
const PointF destPoint,
const RectF srcRect,
Unit  srcUnit,
EnumerateMetafileProc  callback,
VOID callbackData = NULL,
const ImageAttributes imageAttributes = NULL 
)
inline

Definition at line 693 of file gdiplusgraphics.h.

701 {
703 }

◆ EnumerateMetafile() [6/12]

Status Graphics::EnumerateMetafile ( const Metafile metafile,
const PointF destPoint,
EnumerateMetafileProc  callback,
VOID callbackData = NULL,
const ImageAttributes imageAttributes = NULL 
)
inline

Definition at line 610 of file gdiplusgraphics.h.

616 {
618 }

◆ EnumerateMetafile() [7/12]

Status Graphics::EnumerateMetafile ( const Metafile metafile,
const PointF destPoints,
INT  count,
const RectF srcRect,
Unit  srcUnit,
EnumerateMetafileProc  callback,
VOID callbackData = NULL,
const ImageAttributes imageAttributes = NULL 
)
inline

Definition at line 733 of file gdiplusgraphics.h.

742 {
744 }

◆ EnumerateMetafile() [8/12]

Status Graphics::EnumerateMetafile ( const Metafile metafile,
const PointF destPoints,
INT  count,
EnumerateMetafileProc  callback,
VOID callbackData = NULL,
const ImageAttributes imageAttributes = NULL 
)
inline

Definition at line 646 of file gdiplusgraphics.h.

653 {
655 }

◆ EnumerateMetafile() [9/12]

Status Graphics::EnumerateMetafile ( const Metafile metafile,
const Rect destRect,
const Rect srcRect,
Unit  srcUnit,
EnumerateMetafileProc  callback,
VOID callbackData = NULL,
const ImageAttributes imageAttributes = NULL 
)
inline

Definition at line 720 of file gdiplusgraphics.h.

728 {
730 }

◆ EnumerateMetafile() [10/12]

Status Graphics::EnumerateMetafile ( const Metafile metafile,
const Rect destRect,
EnumerateMetafileProc  callback,
VOID callbackData = NULL,
const ImageAttributes imageAttributes = NULL 
)
inline

Definition at line 658 of file gdiplusgraphics.h.

664 {
666 }

◆ EnumerateMetafile() [11/12]

Status Graphics::EnumerateMetafile ( const Metafile metafile,
const RectF destRect,
const RectF srcRect,
Unit  srcUnit,
EnumerateMetafileProc  callback,
VOID callbackData = NULL,
const ImageAttributes imageAttributes = NULL 
)
inline

Definition at line 669 of file gdiplusgraphics.h.

677 {
679 }

◆ EnumerateMetafile() [12/12]

Status Graphics::EnumerateMetafile ( const Metafile metafile,
const RectF destRect,
EnumerateMetafileProc  callback,
VOID callbackData = NULL,
const ImageAttributes imageAttributes = NULL 
)
inline

Definition at line 682 of file gdiplusgraphics.h.

688 {
690 }

◆ ExcludeClip() [1/3]

Status Graphics::ExcludeClip ( const Rect rect)
inline

Definition at line 758 of file gdiplusgraphics.h.

759 {
760 return SetStatus(
761 DllExports::GdipSetClipRectI(nativeGraphics, rect.X, rect.Y, rect.Width, rect.Height, CombineModeExclude));
762 }
@ CombineModeExclude
Definition: gdiplusenums.h:355

◆ ExcludeClip() [2/3]

Status Graphics::ExcludeClip ( const RectF rect)
inline

Definition at line 765 of file gdiplusgraphics.h.

766 {
767 return SetStatus(
768 DllExports::GdipSetClipRect(nativeGraphics, rect.X, rect.Y, rect.Width, rect.Height, CombineModeExclude));
769 }

◆ ExcludeClip() [3/3]

Status Graphics::ExcludeClip ( const Region region)
inline

Definition at line 772 of file gdiplusgraphics.h.

773 {
774 return SetStatus(DllExports::GdipSetClipRegion(nativeGraphics, getNat(region), CombineModeExclude));
775 }

◆ FillClosedCurve() [1/4]

Status Graphics::FillClosedCurve ( const Brush brush,
const Point points,
INT  count 
)
inline

Definition at line 778 of file gdiplusgraphics.h.

779 {
780 return SetStatus(DllExports::GdipFillClosedCurveI(nativeGraphics, brush ? getNat(brush) : NULL, points, count));
781 }

◆ FillClosedCurve() [2/4]

Status Graphics::FillClosedCurve ( const Brush brush,
const Point points,
INT  count,
FillMode  fillMode,
REAL  tension 
)
inline

Definition at line 784 of file gdiplusgraphics.h.

785 {
786 return SetStatus(DllExports::GdipFillClosedCurve2I(
787 nativeGraphics, brush ? getNat(brush) : NULL, points, count, tension, fillMode));
788 }
GLenum fillMode
Definition: glext.h:11728

◆ FillClosedCurve() [3/4]

Status Graphics::FillClosedCurve ( const Brush brush,
const PointF points,
INT  count 
)
inline

Definition at line 791 of file gdiplusgraphics.h.

792 {
793 return SetStatus(DllExports::GdipFillClosedCurve(nativeGraphics, brush ? getNat(brush) : NULL, points, count));
794 }

◆ FillClosedCurve() [4/4]

Status Graphics::FillClosedCurve ( const Brush brush,
const PointF points,
INT  count,
FillMode  fillMode,
REAL  tension 
)
inline

Definition at line 797 of file gdiplusgraphics.h.

798 {
799 return SetStatus(DllExports::GdipFillClosedCurve2(
800 nativeGraphics, brush ? getNat(brush) : NULL, points, count, tension, fillMode));
801 }

◆ FillEllipse() [1/4]

Status Graphics::FillEllipse ( const Brush brush,
const Rect rect 
)
inline

Definition at line 804 of file gdiplusgraphics.h.

805 {
806 return SetStatus(DllExports::GdipFillEllipseI(
807 nativeGraphics, brush ? getNat(brush) : NULL, rect.X, rect.Y, rect.Width, rect.Height));
808 }

Referenced by CAppScrnshotPreview::PaintOnDC().

◆ FillEllipse() [2/4]

Status Graphics::FillEllipse ( const Brush brush,
const RectF rect 
)
inline

Definition at line 818 of file gdiplusgraphics.h.

819 {
820 return SetStatus(DllExports::GdipFillEllipse(
821 nativeGraphics, brush ? getNat(brush) : NULL, rect.X, rect.Y, rect.Width, rect.Height));
822 }

◆ FillEllipse() [3/4]

Status Graphics::FillEllipse ( const Brush brush,
INT  x,
INT  y,
INT  width,
INT  height 
)
inline

Definition at line 825 of file gdiplusgraphics.h.

826 {
827 return SetStatus(
828 DllExports::GdipFillEllipseI(nativeGraphics, brush ? getNat(brush) : NULL, x, y, width, height));
829 }

◆ FillEllipse() [4/4]

Status Graphics::FillEllipse ( const Brush brush,
REAL  x,
REAL  y,
REAL  width,
REAL  height 
)
inline

Definition at line 811 of file gdiplusgraphics.h.

812 {
813 return SetStatus(
814 DllExports::GdipFillEllipse(nativeGraphics, brush ? getNat(brush) : NULL, x, y, width, height));
815 }

◆ FillPath()

Status Graphics::FillPath ( const Brush brush,
const GraphicsPath path 
)
inline

Definition at line 832 of file gdiplusgraphics.h.

833 {
834 return SetStatus(DllExports::GdipFillPath(nativeGraphics, getNat(brush), getNat(path)));
835 }

◆ FillPie() [1/4]

Status Graphics::FillPie ( const Brush brush,
const Rect rect,
REAL  startAngle,
REAL  sweepAngle 
)
inline

Definition at line 838 of file gdiplusgraphics.h.

839 {
840 return SetStatus(DllExports::GdipFillPieI(
841 nativeGraphics, brush ? getNat(brush) : NULL, rect.X, rect.Y, rect.Width, rect.Height, startAngle,
842 sweepAngle));
843 }

◆ FillPie() [2/4]

Status Graphics::FillPie ( const Brush brush,
INT  x,
INT  y,
INT  width,
INT  height,
REAL  startAngle,
REAL  sweepAngle 
)
inline

Definition at line 846 of file gdiplusgraphics.h.

847 {
848 return SetStatus(DllExports::GdipFillPieI(
849 nativeGraphics, brush ? getNat(brush) : NULL, x, y, width, height, startAngle, sweepAngle));
850 }

◆ FillPie() [3/4]

Status Graphics::FillPie ( const Brush brush,
REAL  x,
REAL  y,
REAL  width,
REAL  height,
REAL  startAngle,
REAL  sweepAngle 
)
inline

Definition at line 853 of file gdiplusgraphics.h.

854 {
855 return SetStatus(DllExports::GdipFillPie(
856 nativeGraphics, brush ? getNat(brush) : NULL, x, y, width, height, startAngle, sweepAngle));
857 }

◆ FillPie() [4/4]

Status Graphics::FillPie ( const Brush brush,
RectF rect,
REAL  startAngle,
REAL  sweepAngle 
)
inline

Definition at line 860 of file gdiplusgraphics.h.

861 {
862 return SetStatus(DllExports::GdipFillPie(
863 nativeGraphics, brush ? getNat(brush) : NULL, rect.X, rect.Y, rect.Width, rect.Height, startAngle,
864 sweepAngle));
865 }

◆ FillPolygon() [1/4]

Status Graphics::FillPolygon ( const Brush brush,
const Point points,
INT  count 
)
inline

Definition at line 868 of file gdiplusgraphics.h.

869 {
870 return SetStatus(DllExports::GdipFillPolygon2I(nativeGraphics, brush ? getNat(brush) : NULL, points, count));
871 }

◆ FillPolygon() [2/4]

Status Graphics::FillPolygon ( const Brush brush,
const Point points,
INT  count,
FillMode  fillMode 
)
inline

Definition at line 880 of file gdiplusgraphics.h.

881 {
882 return SetStatus(
883 DllExports::GdipFillPolygonI(nativeGraphics, brush ? getNat(brush) : NULL, points, count, fillMode));
884 }

◆ FillPolygon() [3/4]

Status Graphics::FillPolygon ( const Brush brush,
const PointF points,
INT  count 
)
inline

Definition at line 874 of file gdiplusgraphics.h.

875 {
876 return SetStatus(DllExports::GdipFillPolygon2(nativeGraphics, brush ? getNat(brush) : NULL, points, count));
877 }

◆ FillPolygon() [4/4]

Status Graphics::FillPolygon ( const Brush brush,
const PointF points,
INT  count,
FillMode  fillMode 
)
inline

Definition at line 887 of file gdiplusgraphics.h.

888 {
889 return SetStatus(
890 DllExports::GdipFillPolygon(nativeGraphics, brush ? getNat(brush) : NULL, points, count, fillMode));
891 }

◆ FillRectangle() [1/4]

Status Graphics::FillRectangle ( const Brush brush,
const Rect rect 
)
inline

Definition at line 894 of file gdiplusgraphics.h.

895 {
896 return SetStatus(DllExports::GdipFillRectangleI(
897 nativeGraphics, brush ? getNat(brush) : NULL, rect.X, rect.Y, rect.Width, rect.Height));
898 }

◆ FillRectangle() [2/4]

Status Graphics::FillRectangle ( const Brush brush,
const RectF rect 
)
inline

Definition at line 901 of file gdiplusgraphics.h.

902 {
903 return SetStatus(DllExports::GdipFillRectangle(
904 nativeGraphics, brush ? getNat(brush) : NULL, rect.X, rect.Y, rect.Width, rect.Height));
905 }

◆ FillRectangle() [3/4]

Status Graphics::FillRectangle ( const Brush brush,
INT  x,
INT  y,
INT  width,
INT  height 
)
inline

Definition at line 915 of file gdiplusgraphics.h.

916 {
917 return SetStatus(
918 DllExports::GdipFillRectangleI(nativeGraphics, brush ? getNat(brush) : NULL, x, y, width, height));
919 }

◆ FillRectangle() [4/4]

Status Graphics::FillRectangle ( const Brush brush,
REAL  x,
REAL  y,
REAL  width,
REAL  height 
)
inline

Definition at line 908 of file gdiplusgraphics.h.

909 {
910 return SetStatus(
911 DllExports::GdipFillRectangle(nativeGraphics, brush ? getNat(brush) : NULL, x, y, width, height));
912 }

◆ FillRectangles() [1/2]

Status Graphics::FillRectangles ( const Brush brush,
const Rect rects,
INT  count 
)
inline

Definition at line 922 of file gdiplusgraphics.h.

923 {
924 return SetStatus(DllExports::GdipFillRectanglesI(nativeGraphics, brush ? getNat(brush) : NULL, rects, count));
925 }

◆ FillRectangles() [2/2]

Status Graphics::FillRectangles ( const Brush brush,
const RectF rects,
INT  count 
)
inline

Definition at line 928 of file gdiplusgraphics.h.

929 {
930 return SetStatus(DllExports::GdipFillRectangles(nativeGraphics, brush ? getNat(brush) : NULL, rects, count));
931 }

◆ FillRegion()

Status Graphics::FillRegion ( const Brush brush,
const Region region 
)
inline

Definition at line 934 of file gdiplusgraphics.h.

935 {
936 return SetStatus(DllExports::GdipFillRegion(nativeGraphics, getNat(brush), getNat(region)));
937 }

◆ Flush()

VOID Graphics::Flush ( FlushIntention  intention)
inline

Definition at line 940 of file gdiplusgraphics.h.

941 {
942 DllExports::GdipFlush(nativeGraphics, intention);
943 }

◆ FromHDC() [1/2]

static Graphics * Graphics::FromHDC ( HDC  hdc)
inlinestatic

Definition at line 946 of file gdiplusgraphics.h.

947 {
948 return new Graphics(hdc);
949 }

◆ FromHDC() [2/2]

static Graphics * Graphics::FromHDC ( HDC  hdc,
HANDLE  hDevice 
)
inlinestatic

Definition at line 952 of file gdiplusgraphics.h.

953 {
954 return new Graphics(hdc, hDevice);
955 }

◆ FromHWND()

static Graphics * Graphics::FromHWND ( HWND  hWnd,
BOOL  icm 
)
inlinestatic

Definition at line 958 of file gdiplusgraphics.h.

959 {
960 return new Graphics(hWnd, icm);
961 }
HWND hWnd
Definition: settings.c:17

◆ FromImage()

static Graphics * Graphics::FromImage ( Image image)
inlinestatic

Definition at line 964 of file gdiplusgraphics.h.

965 {
966 return new Graphics(image);
967 }

◆ GetClip()

Status Graphics::GetClip ( Region region) const
inline

Definition at line 970 of file gdiplusgraphics.h.

971 {
972 return SetStatus(DllExports::GdipGetClip(nativeGraphics, getNat(region)));
973 }

◆ GetClipBounds() [1/2]

Status Graphics::GetClipBounds ( Rect rect) const
inline

Definition at line 976 of file gdiplusgraphics.h.

977 {
978 return SetStatus(DllExports::GdipGetClipBoundsI(nativeGraphics, rect));
979 }

◆ GetClipBounds() [2/2]

Status Graphics::GetClipBounds ( RectF rect) const
inline

Definition at line 982 of file gdiplusgraphics.h.

983 {
984 return SetStatus(DllExports::GdipGetClipBounds(nativeGraphics, rect));
985 }

◆ GetCompositingMode()

CompositingMode Graphics::GetCompositingMode ( ) const
inline

Definition at line 988 of file gdiplusgraphics.h.

989 {
990 CompositingMode compositingMode;
991 SetStatus(DllExports::GdipGetCompositingMode(nativeGraphics, &compositingMode));
992 return compositingMode;
993 }
CompositingMode
Definition: gdiplusenums.h:248

◆ GetCompositingQuality()

CompositingQuality Graphics::GetCompositingQuality ( ) const
inline

Definition at line 996 of file gdiplusgraphics.h.

997 {
998 CompositingQuality compositingQuality;
999 SetStatus(DllExports::GdipGetCompositingQuality(nativeGraphics, &compositingQuality));
1000 return compositingQuality;
1001 }
CompositingQuality
Definition: gdiplusenums.h:131

◆ GetDpiX()

REAL Graphics::GetDpiX ( ) const
inline

Definition at line 1004 of file gdiplusgraphics.h.

1005 {
1006 REAL dpi;
1007 SetStatus(DllExports::GdipGetDpiX(nativeGraphics, &dpi));
1008 return dpi;
1009 }
float REAL
Definition: types.h:41
#define dpi
Definition: sysparams.c:23

◆ GetDpiY()

REAL Graphics::GetDpiY ( ) const
inline

Definition at line 1012 of file gdiplusgraphics.h.

1013 {
1014 REAL dpi;
1015 SetStatus(DllExports::GdipGetDpiY(nativeGraphics, &dpi));
1016 return dpi;
1017 }

◆ GetHalftonePalette()

static HPALETTE Graphics::GetHalftonePalette ( )
inlinestatic

Definition at line 1020 of file gdiplusgraphics.h.

1021 {
1022 return NULL;
1023 }

◆ GetHDC()

HDC Graphics::GetHDC ( )
inline

Definition at line 1026 of file gdiplusgraphics.h.

1027 {
1028 HDC hdc = NULL;
1029 SetStatus(DllExports::GdipGetDC(nativeGraphics, &hdc));
1030 return hdc;
1031 }
static HDC
Definition: imagelist.c:92

◆ GetInterpolationMode()

InterpolationMode Graphics::GetInterpolationMode ( ) const
inline

Definition at line 1034 of file gdiplusgraphics.h.

1035 {
1036 InterpolationMode interpolationMode;
1037 SetStatus(DllExports::GdipGetInterpolationMode(nativeGraphics, &interpolationMode));
1038 return interpolationMode;
1039 }
InterpolationMode
Definition: gdiplusenums.h:141

◆ GetLastStatus()

Status Graphics::GetLastStatus ( ) const
inline

Definition at line 1042 of file gdiplusgraphics.h.

1043 {
1044 return lastStatus;
1045 }

◆ GetNearestColor()

Status Graphics::GetNearestColor ( Color color) const
inline

Definition at line 1048 of file gdiplusgraphics.h.

1049 {
1050 if (color == NULL)
1052
1053 ARGB argb = color->GetValue();
1054 SetStatus(DllExports::GdipGetNearestColor(nativeGraphics, &argb));
1055
1056 color->SetValue(argb);
1057 return lastStatus;
1058 }
DWORD ARGB

◆ GetPageScale()

REAL Graphics::GetPageScale ( ) const
inline

Definition at line 1061 of file gdiplusgraphics.h.

1062 {
1063 REAL scale;
1064 SetStatus(DllExports::GdipGetPageScale(nativeGraphics, &scale));
1065 return scale;
1066 }
GLenum GLenum GLenum GLenum GLenum scale
Definition: glext.h:9032

◆ GetPageUnit()

Unit Graphics::GetPageUnit ( ) const
inline

Definition at line 1069 of file gdiplusgraphics.h.

1070 {
1071 Unit unit;
1072 SetStatus(DllExports::GdipGetPageUnit(nativeGraphics, &unit));
1073 return unit;
1074 }
Unit
Definition: gdiplusenums.h:26
png_const_structrp png_const_inforp int * unit
Definition: png.h:2159

◆ GetPixelOffsetMode()

PixelOffsetMode Graphics::GetPixelOffsetMode ( ) const
inline

Definition at line 1077 of file gdiplusgraphics.h.

1078 {
1079 PixelOffsetMode pixelOffsetMode;
1080 SetStatus(DllExports::GdipGetPixelOffsetMode(nativeGraphics, &pixelOffsetMode));
1081 return pixelOffsetMode;
1082 }
PixelOffsetMode
Definition: gdiplusenums.h:160

◆ GetRenderingOrigin()

Status Graphics::GetRenderingOrigin ( INT x,
INT y 
) const
inline

Definition at line 1085 of file gdiplusgraphics.h.

1086 {
1087 return SetStatus(DllExports::GdipGetRenderingOrigin(nativeGraphics, x, y));
1088 }

◆ GetSmoothingMode()

SmoothingMode Graphics::GetSmoothingMode ( ) const
inline

Definition at line 1091 of file gdiplusgraphics.h.

1092 {
1093 SmoothingMode smoothingMode;
1094 SetStatus(DllExports::GdipGetSmoothingMode(nativeGraphics, &smoothingMode));
1095 return smoothingMode;
1096 }
SmoothingMode
Definition: gdiplusenums.h:121

◆ GetTextContrast()

UINT Graphics::GetTextContrast ( ) const
inline

Definition at line 1099 of file gdiplusgraphics.h.

1100 {
1101 UINT contrast;
1102 SetStatus(DllExports::GdipGetTextContrast(nativeGraphics, &contrast));
1103 return contrast;
1104 }
unsigned int UINT
Definition: ndis.h:50

◆ GetTextGammaValue()

UINT Graphics::GetTextGammaValue ( ) const
inline

Definition at line 1115 of file gdiplusgraphics.h.

1116 {
1117#if 1
1118 return SetStatus(NotImplemented); // FIXME
1119#else
1120 UINT gammaValue;
1121 SetStatus(DllExports::GdipGetTextGammaValue(nativeGraphics, &gammaValue));
1122 return gammaValue;
1123#endif
1124 }

◆ GetTextRenderingHint()

TextRenderingHint Graphics::GetTextRenderingHint ( ) const
inline

Definition at line 1107 of file gdiplusgraphics.h.

1108 {
1110 SetStatus(DllExports::GdipGetTextRenderingHint(nativeGraphics, &mode));
1111 return mode;
1112 }
TextRenderingHint
Definition: gdiplusenums.h:254
GLenum mode
Definition: glext.h:6217

◆ GetTransform()

Status Graphics::GetTransform ( Matrix matrix) const
inline

Definition at line 1127 of file gdiplusgraphics.h.

1128 {
1129 return SetStatus(DllExports::GdipGetWorldTransform(nativeGraphics, getNat(matrix)));
1130 }

◆ GetVisibleClipBounds() [1/2]

Status Graphics::GetVisibleClipBounds ( Rect rect) const
inline

Definition at line 1133 of file gdiplusgraphics.h.

1134 {
1135 return SetStatus(DllExports::GdipGetVisibleClipBoundsI(nativeGraphics, rect));
1136 }

◆ GetVisibleClipBounds() [2/2]

Status Graphics::GetVisibleClipBounds ( RectF rect) const
inline

Definition at line 1139 of file gdiplusgraphics.h.

1140 {
1141 return SetStatus(DllExports::GdipGetVisibleClipBounds(nativeGraphics, rect));
1142 }

◆ IntersectClip() [1/3]

Status Graphics::IntersectClip ( const Rect rect)
inline

Definition at line 1145 of file gdiplusgraphics.h.

1146 {
1147 return SetStatus(DllExports::GdipSetClipRectI(
1148 nativeGraphics, rect.X, rect.Y, rect.Width, rect.Height, CombineModeIntersect));
1149 }
@ CombineModeIntersect
Definition: gdiplusenums.h:352

◆ IntersectClip() [2/3]

Status Graphics::IntersectClip ( const RectF rect)
inline

Definition at line 1158 of file gdiplusgraphics.h.

1159 {
1160 return SetStatus(
1161 DllExports::GdipSetClipRect(nativeGraphics, rect.X, rect.Y, rect.Width, rect.Height, CombineModeIntersect));
1162 }

◆ IntersectClip() [3/3]

Status Graphics::IntersectClip ( const Region region)
inline

Definition at line 1152 of file gdiplusgraphics.h.

1153 {
1154 return SetStatus(DllExports::GdipSetClipRegion(nativeGraphics, getNat(region), CombineModeIntersect));
1155 }

◆ IsClipEmpty()

BOOL Graphics::IsClipEmpty ( ) const
inline

Definition at line 1165 of file gdiplusgraphics.h.

1166 {
1167 BOOL result;
1168 SetStatus(DllExports::GdipIsClipEmpty(nativeGraphics, &result));
1169 return result;
1170 }
unsigned int BOOL
Definition: ntddk_ex.h:94
GLuint64EXT * result
Definition: glext.h:11304

◆ IsVisible() [1/8]

BOOL Graphics::IsVisible ( const Point point) const
inline

Definition at line 1173 of file gdiplusgraphics.h.

1174 {
1175 BOOL result;
1176 SetStatus(DllExports::GdipIsVisiblePointI(nativeGraphics, point.X, point.Y, &result));
1177 return result;
1178 }

◆ IsVisible() [2/8]

BOOL Graphics::IsVisible ( const PointF point) const
inline

Definition at line 1221 of file gdiplusgraphics.h.

1222 {
1223 BOOL result;
1224 SetStatus(DllExports::GdipIsVisiblePoint(nativeGraphics, point.X, point.Y, &result));
1225 return result;
1226 }

◆ IsVisible() [3/8]

BOOL Graphics::IsVisible ( const Rect rect) const
inline

Definition at line 1181 of file gdiplusgraphics.h.

1182 {
1183 BOOL result;
1184 SetStatus(DllExports::GdipIsVisibleRectI(nativeGraphics, rect.X, rect.Y, rect.Width, rect.Height, &result));
1185 return result;
1186 }

◆ IsVisible() [4/8]

BOOL Graphics::IsVisible ( const RectF rect) const
inline

Definition at line 1197 of file gdiplusgraphics.h.

1198 {
1199 BOOL result;
1200 SetStatus(DllExports::GdipIsVisibleRect(nativeGraphics, rect.X, rect.Y, rect.Width, rect.Height, &result));
1201 return result;
1202 }

◆ IsVisible() [5/8]

BOOL Graphics::IsVisible ( INT  x,
INT  y 
) const
inline

Definition at line 1213 of file gdiplusgraphics.h.

1214 {
1215 BOOL result;
1216 SetStatus(DllExports::GdipIsVisiblePointI(nativeGraphics, x, y, &result));
1217 return result;
1218 }

◆ IsVisible() [6/8]

BOOL Graphics::IsVisible ( INT  x,
INT  y,
INT  width,
INT  height 
) const
inline

Definition at line 1205 of file gdiplusgraphics.h.

1206 {
1207 BOOL result;
1208 SetStatus(DllExports::GdipIsVisibleRectI(nativeGraphics, x, y, width, height, &result));
1209 return result;
1210 }

◆ IsVisible() [7/8]

BOOL Graphics::IsVisible ( REAL  x,
REAL  y 
) const
inline

Definition at line 1189 of file gdiplusgraphics.h.

1190 {
1191 BOOL result;
1192 SetStatus(DllExports::GdipIsVisiblePoint(nativeGraphics, x, y, &result));
1193 return result;
1194 }

◆ IsVisible() [8/8]

BOOL Graphics::IsVisible ( REAL  x,
REAL  y,
REAL  width,
REAL  height 
) const
inline

Definition at line 1229 of file gdiplusgraphics.h.

1230 {
1231 BOOL result;
1232 SetStatus(DllExports::GdipIsVisibleRect(nativeGraphics, x, y, width, height, &result));
1233 return result;
1234 }

◆ IsVisibleClipEmpty()

BOOL Graphics::IsVisibleClipEmpty ( ) const
inline

Definition at line 1237 of file gdiplusgraphics.h.

1238 {
1239 BOOL flag = FALSE;
1240 SetStatus(DllExports::GdipIsVisibleClipEmpty(nativeGraphics, &flag));
1241 return flag;
1242 }
#define FALSE
Definition: types.h:117
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean flag
Definition: glfuncs.h:52

◆ MeasureCharacterRanges()

Status Graphics::MeasureCharacterRanges ( const WCHAR string,
INT  length,
const Font font,
const RectF layoutRect,
const StringFormat stringFormat,
INT  regionCount,
Region regions 
) const
inline

Definition at line 1245 of file gdiplusgraphics.h.

1253 {
1254 return NotImplemented;
1255 }

◆ MeasureDriverString()

Status Graphics::MeasureDriverString ( const UINT16 text,
INT  length,
const Font font,
const PointF positions,
INT  flags,
const Matrix matrix,
RectF boundingBox 
) const
inline

Definition at line 1258 of file gdiplusgraphics.h.

1266 {
1267 return NotImplemented;
1268 }

◆ MeasureString() [1/5]

Status Graphics::MeasureString ( const WCHAR string,
INT  length,
const Font font,
const PointF origin,
const StringFormat stringFormat,
RectF boundingBox 
) const
inline

Definition at line 1277 of file gdiplusgraphics.h.

1284 {
1285 return NotImplemented;
1286 }

◆ MeasureString() [2/5]

Status Graphics::MeasureString ( const WCHAR string,
INT  length,
const Font font,
const PointF origin,
RectF boundingBox 
) const
inline

Definition at line 1317 of file gdiplusgraphics.h.

1318 {
1319 return NotImplemented;
1320 }

◆ MeasureString() [3/5]

Status Graphics::MeasureString ( const WCHAR string,
INT  length,
const Font font,
const RectF layoutRect,
const StringFormat stringFormat,
RectF boundingBox,
INT codepointsFitted,
INT linesFilled 
) const
inline

Definition at line 1289 of file gdiplusgraphics.h.

1298 {
1299 return NotImplemented;
1300 }

◆ MeasureString() [4/5]

Status Graphics::MeasureString ( const WCHAR string,
INT  length,
const Font font,
const RectF layoutRect,
RectF boundingBox 
) const
inline

Definition at line 1271 of file gdiplusgraphics.h.

1272 {
1273 return NotImplemented;
1274 }

◆ MeasureString() [5/5]

Status Graphics::MeasureString ( const WCHAR string,
INT  length,
const Font font,
const SizeF &  layoutRectSize,
const StringFormat stringFormat,
SizeF *  size,
INT codepointsFitted,
INT linesFilled 
) const
inline

Definition at line 1303 of file gdiplusgraphics.h.

1312 {
1313 return NotImplemented;
1314 }

◆ MultiplyTransform()

Status Graphics::MultiplyTransform ( Matrix matrix,
MatrixOrder  order 
)
inline

Definition at line 1323 of file gdiplusgraphics.h.

1324 {
1325 return SetStatus(DllExports::GdipMultiplyWorldTransform(nativeGraphics, getNat(matrix), order));
1326 }
GLuint GLdouble GLdouble GLint GLint order
Definition: glext.h:11194

◆ ReleaseHDC()

VOID Graphics::ReleaseHDC ( HDC  hdc)
inline

Definition at line 1329 of file gdiplusgraphics.h.

1330 {
1331 SetStatus(DllExports::GdipReleaseDC(nativeGraphics, hdc));
1332 }

◆ ResetClip()

Status Graphics::ResetClip ( )
inline

Definition at line 1335 of file gdiplusgraphics.h.

1336 {
1337 return SetStatus(DllExports::GdipResetClip(nativeGraphics));
1338 }

◆ ResetTransform()

Status Graphics::ResetTransform ( )
inline

Definition at line 1341 of file gdiplusgraphics.h.

1342 {
1343 return SetStatus(DllExports::GdipResetWorldTransform(nativeGraphics));
1344 }

◆ Restore()

Status Graphics::Restore ( GraphicsState  gstate)
inline

Definition at line 1347 of file gdiplusgraphics.h.

1348 {
1349 return SetStatus(DllExports::GdipRestoreGraphics(nativeGraphics, gstate));
1350 }

◆ RotateTransform()

Status Graphics::RotateTransform ( REAL  angle,
MatrixOrder  order = MatrixOrderPrepend 
)
inline

Definition at line 1353 of file gdiplusgraphics.h.

1354 {
1355 return SetStatus(DllExports::GdipRotateWorldTransform(nativeGraphics, angle, order));
1356 }
GLfloat angle
Definition: glext.h:10853

◆ Save()

GraphicsState Graphics::Save ( )
inline

Definition at line 1359 of file gdiplusgraphics.h.

1360 {
1361 GraphicsState gstate;
1362 SetStatus(DllExports::GdipSaveGraphics(nativeGraphics, &gstate));
1363 return gstate;
1364 }
UINT GraphicsState
Definition: gdiplusenums.h:22

◆ ScaleTransform()

Status Graphics::ScaleTransform ( REAL  sx,
REAL  sy,
MatrixOrder  order = MatrixOrderPrepend 
)
inline

Definition at line 1367 of file gdiplusgraphics.h.

1368 {
1369 return SetStatus(DllExports::GdipScaleWorldTransform(nativeGraphics, sx, sy, order));
1370 }

◆ SetClip() [1/6]

Status Graphics::SetClip ( const Graphics g,
CombineMode  combineMode = CombineModeReplace 
)
inline

Definition at line 1373 of file gdiplusgraphics.h.

1374 {
1375 return SetStatus(DllExports::GdipSetClipGraphics(nativeGraphics, g ? getNat(g) : NULL, combineMode));
1376 }
GLboolean GLboolean g
Definition: glext.h:6204

◆ SetClip() [2/6]

Status Graphics::SetClip ( const GraphicsPath path,
CombineMode  combineMode = CombineModeReplace 
)
inline

Definition at line 1379 of file gdiplusgraphics.h.

1380 {
1381 return SetStatus(DllExports::GdipSetClipPath(nativeGraphics, getNat(path), combineMode));
1382 }

◆ SetClip() [3/6]

Status Graphics::SetClip ( const Rect rect,
CombineMode  combineMode = CombineModeReplace 
)
inline

Definition at line 1391 of file gdiplusgraphics.h.

1392 {
1393 return SetStatus(
1394 DllExports::GdipSetClipRectI(nativeGraphics, rect.X, rect.Y, rect.Width, rect.Height, combineMode));
1395 }

◆ SetClip() [4/6]

Status Graphics::SetClip ( const RectF rect,
CombineMode  combineMode = CombineModeReplace 
)
inline

Definition at line 1404 of file gdiplusgraphics.h.

1405 {
1406 return SetStatus(
1407 DllExports::GdipSetClipRect(nativeGraphics, rect.X, rect.Y, rect.Width, rect.Height, combineMode));
1408 }

◆ SetClip() [5/6]

Status Graphics::SetClip ( const Region region,
CombineMode  combineMode = CombineModeReplace 
)
inline

Definition at line 1385 of file gdiplusgraphics.h.

1386 {
1387 return SetStatus(DllExports::GdipSetClipRegion(nativeGraphics, getNat(region), combineMode));
1388 }

◆ SetClip() [6/6]

Status Graphics::SetClip ( HRGN  hRgn,
CombineMode  combineMode = CombineModeReplace 
)
inline

Definition at line 1398 of file gdiplusgraphics.h.

1399 {
1400 return SetStatus(DllExports::GdipSetClipHrgn(nativeGraphics, hRgn, combineMode));
1401 }
static HRGN hRgn
Definition: mapping.c:33

◆ SetCompositingMode()

Status Graphics::SetCompositingMode ( CompositingMode  compositingMode)
inline

Definition at line 1411 of file gdiplusgraphics.h.

1412 {
1413 return SetStatus(DllExports::GdipSetCompositingMode(nativeGraphics, compositingMode));
1414 }

◆ SetCompositingQuality()

Status Graphics::SetCompositingQuality ( CompositingQuality  compositingQuality)
inline

Definition at line 1417 of file gdiplusgraphics.h.

1418 {
1419 return SetStatus(DllExports::GdipSetCompositingQuality(nativeGraphics, compositingQuality));
1420 }

◆ SetInterpolationMode()

Status Graphics::SetInterpolationMode ( InterpolationMode  interpolationMode)
inline

Definition at line 1423 of file gdiplusgraphics.h.

1424 {
1425 return SetStatus(DllExports::GdipSetInterpolationMode(nativeGraphics, interpolationMode));
1426 }

◆ SetNativeGraphics()

VOID Graphics::SetNativeGraphics ( GpGraphics graphics)
inlineprivate

Definition at line 1516 of file gdiplusgraphics.h.

1517 {
1518 nativeGraphics = graphics;
1519 }

Referenced by Graphics().

◆ SetPageScale()

Status Graphics::SetPageScale ( REAL  scale)
inline

Definition at line 1429 of file gdiplusgraphics.h.

1430 {
1431 return SetStatus(DllExports::GdipSetPageScale(nativeGraphics, scale));
1432 }

◆ SetPageUnit()

Status Graphics::SetPageUnit ( Unit  unit)
inline

Definition at line 1435 of file gdiplusgraphics.h.

1436 {
1437 return SetStatus(DllExports::GdipSetPageUnit(nativeGraphics, unit));
1438 }

◆ SetPixelOffsetMode()

Status Graphics::SetPixelOffsetMode ( PixelOffsetMode  pixelOffsetMode)
inline

Definition at line 1441 of file gdiplusgraphics.h.

1442 {
1443 return SetStatus(DllExports::GdipSetPixelOffsetMode(nativeGraphics, pixelOffsetMode));
1444 }

◆ SetRenderingOrigin()

Status Graphics::SetRenderingOrigin ( INT  x,
INT  y 
)
inline

Definition at line 1447 of file gdiplusgraphics.h.

1448 {
1449 return SetStatus(DllExports::GdipSetRenderingOrigin(nativeGraphics, x, y));
1450 }

◆ SetSmoothingMode()

Status Graphics::SetSmoothingMode ( SmoothingMode  smoothingMode)
inline

Definition at line 1453 of file gdiplusgraphics.h.

1454 {
1455 return SetStatus(DllExports::GdipSetSmoothingMode(nativeGraphics, smoothingMode));
1456 }

Referenced by CAppScrnshotPreview::PaintOnDC().

◆ SetStatus()

Status Graphics::SetStatus ( Status  status) const
inlineprivate

Definition at line 1508 of file gdiplusgraphics.h.

1509 {
1510 if (status != Ok)
1512 return status;
1513 }
@ Ok
Definition: gdiplustypes.h:26
Definition: ps.c:97

Referenced by AddMetafileComment(), Clear(), DrawArc(), DrawBezier(), DrawBeziers(), DrawCachedBitmap(), DrawClosedCurve(), DrawCurve(), DrawDriverString(), DrawEllipse(), DrawImage(), DrawLine(), DrawLines(), DrawPath(), DrawPie(), DrawPolygon(), DrawRectangle(), DrawRectangles(), DrawString(), EndContainer(), EnumerateMetafile(), ExcludeClip(), FillClosedCurve(), FillEllipse(), FillPath(), FillPie(), FillPolygon(), FillRectangle(), FillRectangles(), FillRegion(), GetClip(), GetClipBounds(), GetCompositingMode(), GetCompositingQuality(), GetDpiX(), GetDpiY(), GetHDC(), GetInterpolationMode(), GetNearestColor(), GetPageScale(), GetPageUnit(), GetPixelOffsetMode(), GetRenderingOrigin(), GetSmoothingMode(), GetTextContrast(), GetTextGammaValue(), GetTextRenderingHint(), GetTransform(), GetVisibleClipBounds(), IntersectClip(), IsClipEmpty(), IsVisible(), IsVisibleClipEmpty(), MultiplyTransform(), ReleaseHDC(), ResetClip(), ResetTransform(), Restore(), RotateTransform(), Save(), ScaleTransform(), SetClip(), SetCompositingMode(), SetCompositingQuality(), SetInterpolationMode(), SetPageScale(), SetPageUnit(), SetPixelOffsetMode(), SetRenderingOrigin(), SetSmoothingMode(), SetTextContrast(), SetTextRenderingHint(), SetTransform(), TransformPoints(), TranslateClip(), and TranslateTransform().

◆ SetTextContrast()

Status Graphics::SetTextContrast ( UINT  contrast)
inline

Definition at line 1459 of file gdiplusgraphics.h.

1460 {
1461 return SetStatus(DllExports::GdipSetTextContrast(nativeGraphics, contrast));
1462 }

◆ SetTextRenderingHint()

Status Graphics::SetTextRenderingHint ( TextRenderingHint  newMode)
inline

Definition at line 1465 of file gdiplusgraphics.h.

1466 {
1467 return SetStatus(DllExports::GdipSetTextRenderingHint(nativeGraphics, newMode));
1468 }

◆ SetTransform()

Status Graphics::SetTransform ( const Matrix matrix)
inline

Definition at line 1471 of file gdiplusgraphics.h.

1472 {
1473 return SetStatus(DllExports::GdipSetWorldTransform(nativeGraphics, getNat(matrix)));
1474 }

◆ TransformPoints() [1/2]

Status Graphics::TransformPoints ( CoordinateSpace  destSpace,
CoordinateSpace  srcSpace,
Point pts,
INT  count 
)
inline

Definition at line 1477 of file gdiplusgraphics.h.

1478 {
1479 return SetStatus(DllExports::GdipTransformPointsI(nativeGraphics, destSpace, srcSpace, pts, count));
1480 }

◆ TransformPoints() [2/2]

Status Graphics::TransformPoints ( CoordinateSpace  destSpace,
CoordinateSpace  srcSpace,
PointF pts,
INT  count 
)
inline

Definition at line 1483 of file gdiplusgraphics.h.

1484 {
1485 return SetStatus(DllExports::GdipTransformPoints(nativeGraphics, destSpace, srcSpace, pts, count));
1486 }

◆ TranslateClip() [1/2]

Status Graphics::TranslateClip ( INT  dx,
INT  dy 
)
inline

Definition at line 1489 of file gdiplusgraphics.h.

1490 {
1491 return SetStatus(DllExports::GdipTranslateClipI(nativeGraphics, dx, dy));
1492 }
GLint dy
Definition: linetemp.h:97
GLint dx
Definition: linetemp.h:97

◆ TranslateClip() [2/2]

Status Graphics::TranslateClip ( REAL  dx,
REAL  dy 
)
inline

Definition at line 1495 of file gdiplusgraphics.h.

1496 {
1497 return SetStatus(DllExports::GdipTranslateClip(nativeGraphics, dx, dy));
1498 }

◆ TranslateTransform()

Status Graphics::TranslateTransform ( REAL  dx,
REAL  dy,
MatrixOrder  order = MatrixOrderPrepend 
)
inline

Definition at line 1501 of file gdiplusgraphics.h.

1502 {
1503 return SetStatus(DllExports::GdipTranslateWorldTransform(nativeGraphics, dx, dy, order));
1504 }

Friends And Related Function Documentation

◆ Bitmap

friend class Bitmap
friend

Definition at line 26 of file gdiplusgraphics.h.

◆ CachedBitmap

friend class CachedBitmap
friend

Definition at line 27 of file gdiplusgraphics.h.

◆ Font

friend class Font
friend

Definition at line 25 of file gdiplusgraphics.h.

◆ getNat

◆ ImageAttributes

friend class ImageAttributes
friend

Definition at line 28 of file gdiplusgraphics.h.

◆ Region

friend class Region
friend

Definition at line 24 of file gdiplusgraphics.h.

Member Data Documentation

◆ lastStatus

Status Graphics::lastStatus
mutableprotected

Definition at line 1523 of file gdiplusgraphics.h.

Referenced by GetLastStatus(), GetNearestColor(), Graphics(), and SetStatus().

◆ nativeGraphics


The documentation for this class was generated from the following file: