CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
System::Drawing::Graphics Class Reference

Represents a drawing surface. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...

#include <graphics.h>

Inherits System::Object.

Public Types

using EnumerateMetafileProc = MulticastDelegate< bool(Imaging::EmfPlusRecordType, int32_t, int32_t, IntPtr, Imaging::PlayRecordCallback)>
 The type of a callback fuction object used as an argument for EnumerateMetafile method. More...
 
using DrawImageAbort = std::function< bool(IntPtr ptr)>
 The type of a callback fuction object used as an argument for DrawImage method. More...
 
- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 

Public Member Functions

Drawing2D::CompositingMode get_CompositingMode ()
 Returns a value that indicates how composited images are drawn on the surface represented by the current object. More...
 
void set_CompositingMode (Drawing2D::CompositingMode mode)
 Sets a value that specifies how composited images are drawn on the surface represented by the current object. More...
 
Drawing2D::CompositingQuality get_CompositingQuality ()
 Returns a value that indicates the quality level used when compositing images. More...
 
void set_CompositingQuality (Drawing2D::CompositingQuality quality)
 Sets a value that specifies the quality level to use when compositing images. More...
 
Drawing2D::InterpolationMode get_InterpolationMode ()
 Returns a value that indicates the interpolation mode associated with the current object. More...
 
void set_InterpolationMode (Drawing2D::InterpolationMode mode)
 Sets a value that indicates the interpolation mode associated with the current object. More...
 
Drawing2D::PixelOffsetMode get_PixelOffsetMode ()
 Returns a value that indicates how the pixels are offset during rendering on the surface represented by the current object. More...
 
void set_PixelOffsetMode (Drawing2D::PixelOffsetMode mode)
 Sets a value that specifies how the pixels should be offset during rendering on the surface represented by the current object. More...
 
Drawing2D::SmoothingMode get_SmoothingMode ()
 Returns a value that indicates a soothing mode used during rendering on the surface represented by the current object. More...
 
void set_SmoothingMode (Drawing2D::SmoothingMode mode)
 Sets a value that specifies a soothing mode used during rendering on the surface represented by the current object. More...
 
Text::TextRenderingHint get_TextRenderingHint ()
 Returns a value that indicates the quality of text rendering. More...
 
void set_TextRenderingHint (Text::TextRenderingHint hint)
 Sets a value that specifies the quality of text rendering. More...
 
GraphicsUnit get_PageUnit () const
 Returns measurement units used for page coordinates on the surface represented by the current object. More...
 
void set_PageUnit (GraphicsUnit value)
 Sets measurement units used for page coordinates on the surface represented by the current object. More...
 
RectangleF get_ClipBounds () const
 Returns a rectangle that bounds the clipping area of the surface represented by the current object. More...
 
void Clear (Color color)
 Clears the drawing surface represented by the current object and fills it with the specified color. More...
 
void DrawArc (const SharedPtr< Pen > &pen, int32_t x, int32_t y, int32_t width, int32_t height, int32_t startAngle, int32_t sweepAngle)
 Draws the specified arc using the specified pen on the surface represented by the current object. More...
 
void DrawArc (const SharedPtr< Pen > &pen, float x, float y, float width, float height, float startAngle, float sweepAngle)
 Draws the specified arc using the specified pen on the surface represented by the current object. More...
 
void DrawArc (const SharedPtr< Pen > &pen, Rectangle rect, float startAngle, float sweepAngle)
 Draws the specified arc using the specified pen on the surface represented by the current object. More...
 
void DrawArc (const SharedPtr< Pen > &pen, RectangleF rect, float startAngle, float sweepAngle)
 Draws the specified arc using the specified pen on the surface represented by the current object. More...
 
void DrawPie (const SharedPtr< Pen > &pen, int32_t x, int32_t y, int32_t width, int32_t height, int32_t startAngle, int32_t sweepAngle)
 Draws the specified pie using the specified pen on the surface represented by the current object. More...
 
void DrawPie (const SharedPtr< Pen > &pen, float x, float y, float width, float height, float startAngle, float sweepAngle)
 Draws the specified pie using the specified pen on the surface represented by the current object. More...
 
void DrawPie (const SharedPtr< Pen > &pen, Rectangle rect, float startAngle, float sweepAngle)
 Draws the specified pie using the specified pen on the surface represented by the current object. More...
 
void DrawPie (const SharedPtr< Pen > &pen, RectangleF rect, float startAngle, float sweepAngle)
 Draws the specified pie using the specified pen on the surface represented by the current object. More...
 
void FillPie (const SharedPtr< Brush > &brush, int x, int y, int width, int height, int startAngle, int sweepAngle)
 Fills the specified pie using the specified brush on the surface represented by the current object. More...
 
void FillPie (const SharedPtr< Brush > &brush, float x, float y, float width, float height, float startAngle, float sweepAngle)
 Fills the specified pie using the specified brush on the surface represented by the current object. More...
 
void FillPie (const SharedPtr< Brush > &brush, Rectangle rect, float startAngle, float sweepAngle)
 Fills the specified pie using the specified brush on the surface represented by the current object. More...
 
void DrawRectangle (const SharedPtr< Pen > &pen, int x, int y, int width, int height)
 Draws the specified rectangle using the specified pen on the surface represented by the current object. More...
 
void DrawRectangle (const SharedPtr< Pen > &pen, float x, float y, float width, float height)
 Draws the specified rectangle using the specified pen on the surface represented by the current object. More...
 
void DrawRectangle (const SharedPtr< Pen > &pen, Rectangle rect)
 Draws the specified rectangle using the specified pen on the surface represented by the current object. More...
 
void DrawRectangles (const SharedPtr< Pen > &pen, const ArrayPtr< Rectangle > &rects)
 Draws a series of rectangles using the specified pen. More...
 
void DrawRectangles (const SharedPtr< Pen > &pen, const ArrayPtr< RectangleF > &rects)
 Draws a series of rectangles using the specified pen. More...
 
void DrawPolygon (const SharedPtr< Pen > &pen, const ArrayPtr< Point > &points)
 Draws a polygon using the specified pen. More...
 
void DrawPolygon (const SharedPtr< Pen > &pen, const ArrayPtr< PointF > &points)
 Draws a polygon using the specified pen. More...
 
void FillRectangle (const SharedPtr< Brush > &brush, float x, float y, float width, float height)
 Fills the specified rectangle with the specified brush. More...
 
void FillRectangle (const SharedPtr< Brush > &brush, int x, int y, int width, int height)
 Fills the specified rectangle with the specified brush. More...
 
void FillRectangle (const SharedPtr< Brush > &brush, Rectangle rect)
 Fills the specified rectangle with the specified brush. More...
 
void FillRectangle (const SharedPtr< Brush > &brush, RectangleF rect)
 Fills the specified rectangle with the specified brush. More...
 
void FillRectangles (const SharedPtr< Brush > &brush, const ArrayPtr< Rectangle > &rects)
 Fills a series of rectangles using the specified brush. More...
 
void FillRectangles (const SharedPtr< Brush > &brush, const ArrayPtr< RectangleF > &rects)
 Fills a series of rectangles using the specified brush. More...
 
void DrawEllipse (const SharedPtr< Pen > &pen, Rectangle rect)
 Draws the specified ellipse using the specified pen on the surface represented by the current object. More...
 
void DrawEllipse (const SharedPtr< Pen > &pen, RectangleF rect)
 Draws the specified ellipse using the specified pen on the surface represented by the current object. More...
 
void DrawEllipse (const SharedPtr< Pen > &pen, int x, int y, int width, int height)
 Draws the specified ellipse using the specified pen on the surface represented by the current object. More...
 
void DrawEllipse (const SharedPtr< Pen > &pen, float x, float y, float width, float height)
 Draws the specified ellipse using the specified pen on the surface represented by the current object. More...
 
void DrawString (const String &str, const SharedPtr< Font > &font, const SharedPtr< Brush > &brush, PointF topLeft, const System::SharedPtr< System::Drawing::StringFormat > &stringFormat=nullptr)
 Draws the specified string at the specified location using the specified font and brush. More...
 
void DrawString (const String &str, const SharedPtr< Font > &font, const SharedPtr< Brush > &brush, RectangleF layoutRectangle, const System::SharedPtr< System::Drawing::StringFormat > &stringFormat=nullptr)
 Draws the specified string in the specified rectangle using the specified font and brush. More...
 
void DrawString (const String &str, const SharedPtr< Font > &font, const SharedPtr< Brush > &brush, float x, float y, const System::SharedPtr< System::Drawing::StringFormat > &stringFormat=nullptr)
 Draws the specified string at the specified location using the specified font and brush. More...
 
void FillEllipse (const SharedPtr< Brush > &brush, Rectangle rect)
 Fills the interior of the ellipse specified by the bounding rectangle using the specified brush. More...
 
void FillEllipse (const SharedPtr< Brush > &brush, RectangleF rect)
 Fills the interior of the ellipse specified by the bounding rectangle using the specified brush. More...
 
void FillEllipse (const SharedPtr< Brush > &brush, int x, int y, int width, int height)
 Fills the interior of the ellipse specified by the bounding rectangle using the specified brush. More...
 
void FillEllipse (const SharedPtr< Brush > &brush, float x, float y, float width, float height)
 Fills the interior of the ellipse specified by the bounding rectangle using the specified brush. More...
 
void FillPath (const SharedPtr< Brush > &brush, const SharedPtr< Drawing2D::GraphicsPath > &path)
 Fills the interiors of the specified path using the specified brush. More...
 
void FillRegion (const SharedPtr< Brush > &brush, const SharedPtr< Region > &region)
 Fills the interiors of the specified region using the specified brush. More...
 
void FillPolygon (const SharedPtr< Brush > &brush, const ArrayPtr< Point > &points, Drawing2D::FillMode fillMode=Drawing2D::FillMode::Alternate)
 Fills the interiors of the specified polygon using the specified brush. More...
 
void FillPolygon (const SharedPtr< Brush > &brush, const ArrayPtr< PointF > &points, Drawing2D::FillMode fillMode=Drawing2D::FillMode::Alternate)
 Fills the interiors of the specified polygon using the specified brush. More...
 
void DrawImage (const SharedPtr< Image > &image, const System::ArrayPtr< Point > &destPoints)
 NOT IMPLEMENTED. More...
 
void DrawImage (const SharedPtr< Image > &image, const System::ArrayPtr< PointF > &destPoints, const RectangleF &srcRect, GraphicsUnit srcUnit, const Imaging::ImageAttributesPtr &imgAttributes)
 Draws the specified region of the specified image at the specified location. More...
 
void DrawImage (const SharedPtr< Image > &image, const System::Details::ArrayView< PointF > &destPoints, const RectangleF &srcRect, GraphicsUnit srcUnit, const Imaging::ImageAttributesPtr &imgAttributes)
 Draws the specified region of the specified image at the specified location. More...
 
template<std::size_t N>
void DrawImage (const SharedPtr< Image > &image, const System::Details::StackArray< PointF, N > &destPoints, const RectangleF &srcRect, GraphicsUnit srcUnit, const Imaging::ImageAttributesPtr &imgAttributes)
 Draws the specified region of the specified image at the specified location. More...
 
void DrawImage (const SharedPtr< Image > &image, int x, int y)
 Draws the specified image at the specified location. More...
 
void DrawImage (const SharedPtr< Image > &image, float x, float y)
 Draws the specified image at the specified location. More...
 
void DrawImage (const SharedPtr< Image > &image, Point pt)
 Draws the specified image at the specified location. More...
 
void DrawImage (const SharedPtr< Image > &image, PointF pt)
 Draws the specified image at the specified location. More...
 
void DrawImage (const SharedPtr< Image > &image, int x, int y, int width, int height)
 Draws the specified image to the specified rectangle. More...
 
void DrawImage (const SharedPtr< Image > &image, float x, float y, float width, float height)
 Draws the specified image to the specified rectangle. More...
 
void DrawImage (const SharedPtr< Image > &image, RectangleF destRect, RectangleF srcRect, GraphicsUnit srcUnit)
 Draws the specified region of the specified image at the specified location. More...
 
void DrawImage (const SharedPtr< Image > &image, Rectangle destRect, Rectangle srcRect, GraphicsUnit srcUnit)
 Draws the specified region of the specified image at the specified location. More...
 
void DrawImage (const SharedPtr< Image > &image, int x, int y, Rectangle srcRect, GraphicsUnit srcUnit)
 Draws the specified region of the specified image at the specified location. More...
 
void DrawImage (const SharedPtr< Image > &image, const Rectangle &rect)
 Draws the specified image at the specified location. More...
 
void DrawImage (const SharedPtr< Image > &image, const RectangleF &rect)
 Draws the specified image at the specified location. More...
 
void DrawImage (const SharedPtr< Image > &image, Rectangle destRect, int srcX, int srcY, int srcWidth, int srcHeight, GraphicsUnit srcUnit, const Imaging::ImageAttributesPtr &imgAttributes)
 Draws the specified region of the specified image to the specified rectangle. More...
 
void DrawImage (const SharedPtr< Image > &image, Rectangle destRect, float srcX, float srcY, float srcWidth, float srcHeight, GraphicsUnit srcUnit, const Imaging::ImageAttributesPtr &imgAttributes)
 Draws the specified region of the specified image to the specified rectangle. More...
 
void DrawImage (const SharedPtr< Image > &image, Rectangle destRect, int srcX, int srcY, int srcWidth, int srcHeight, GraphicsUnit srcUnit)
 Draws the specified region of the specified image to the specified rectangle. More...
 
void DrawImage (const SharedPtr< Image > &image, Rectangle destRect, float srcX, float srcY, float srcWidth, float srcHeight, GraphicsUnit srcUnit)
 Draws the specified region of the specified image to the specified rectangle. More...
 
void DrawImage (const SharedPtr< Image > &image, Rectangle destRect, int srcX, int srcY, int srcWidth, int srcHeight, GraphicsUnit srcUnit, const Imaging::ImageAttributesPtr &imgAttributes, Graphics::DrawImageAbort callback)
 NOT IMPLEMENTED. More...
 
void DrawImage (const SharedPtr< Image > &image, Rectangle destRect, float srcX, float srcY, float srcWidth, float srcHeight, GraphicsUnit srcUnit, const Imaging::ImageAttributesPtr &imgAttributes, Graphics::DrawImageAbort callback)
 NOT IMPLEMENTED. More...
 
void DrawImage (const SharedPtr< Image > &image, Rectangle destRect, int srcX, int srcY, int srcWidth, int srcHeight, GraphicsUnit srcUnit, const Imaging::ImageAttributesPtr &imgAttributes, Graphics::DrawImageAbort callback, IntPtr callbackData)
 NOT IMPLEMENTED. More...
 
void DrawImage (const SharedPtr< Image > &image, Rectangle destRect, float srcX, float srcY, float srcWidth, float srcHeight, GraphicsUnit srcUnit, const Imaging::ImageAttributesPtr &imgAttributes, Graphics::DrawImageAbort callback, IntPtr callbackData)
 NOT IMPLEMENTED. More...
 
void DrawImage (const SharedPtr< Image > &image, const ArrayPtr< PointF > &destPoints, RectangleF srcRect, GraphicsUnit srcUnit)
 NOT IMPLEMENTED. More...
 
void DrawImage (const SharedPtr< Image > &image, const ArrayPtr< PointF > &destPoints)
 NOT IMPLEMENTED. More...
 
void DrawImage (const SharedPtr< Image > &image, const ArrayPtr< Point > &destPoints, Rectangle srcRect, GraphicsUnit srcUnit)
 NOT IMPLEMENTED. More...
 
void DrawImage (const SharedPtr< Image > &image, const ArrayPtr< Point > &destPoints, Rectangle srcRect, GraphicsUnit srcUnit, const SharedPtr< Imaging::ImageAttributes > &imageAttr)
 Draws the specified region of the specified image at the specified location. More...
 
void DrawImage (const SharedPtr< Image > &image, float x, float y, RectangleF srcRect, GraphicsUnit srcUnit)
 Draws the specified region of the specified image at the specified location. More...
 
void DrawImageUnscaled (const SharedPtr< Image > &image, int x, int y)
 Draws the specified image using its original physical size at the specified location. More...
 
void DrawImageUnscaled (const SharedPtr< Image > &image, int x, int y, int width, int height)
 Draws a specified image using its original physical size at a specified location. More...
 
void DrawImageUnscaled (const SharedPtr< Image > &image, const Rectangle &rect)
 Draws a specified image using its original physical size at a specified location. More...
 
void DrawImageUnscaled (const SharedPtr< Image > &image, const Point &point)
 Draws a specified image using its original physical size at a specified location. More...
 
void DrawLine (const SharedPtr< Pen > &pen, Point pt1, Point pt2)
 Draws the specified line using the specified pen. More...
 
void DrawLine (const SharedPtr< Pen > &pen, PointF pt1, PointF pt2)
 Draws the specified line using the specified pen. More...
 
void DrawLine (const SharedPtr< Pen > &pen, int x1, int y1, int x2, int y2)
 Draws the specified line using the specified pen. More...
 
void DrawLine (const SharedPtr< Pen > &pen, float x1, float y1, float x2, float y2)
 Draws the specified line using the specified pen. More...
 
void DrawIcon (const SharedPtr< Icon > &icon, Rectangle targetRect)
 NOT IMPLEMENTED. More...
 
void DrawIcon (const SharedPtr< Icon > &icon, int32_t x, int32_t y)
 NOT IMPLEMENTED. More...
 
void DrawIconUnstretched (const SharedPtr< Icon > &icon, Rectangle targetRect)
 NOT IMPLEMENTED. More...
 
void DrawImageUnscaledAndClipped (const SharedPtr< Image > &image, Rectangle rectangle)
 NOT IMPLEMENTED. More...
 
ArrayPtr< SharedPtr< Region > > MeasureCharacterRanges (const System::String &text, const SharedPtr< Font > &font, RectangleF layoutRect, const SharedPtr< StringFormat > &stringFormat)
 Returns an array of regions each of which bounds character positions in the specified string. More...
 
SizeF MeasureString (String const &str, System::SharedPtr< Font > const &font, PointF const &origin=PointF(0, 0), System::SharedPtr< StringFormat > const &stringFormat=nullptr) const
 Returns a size of the specified string when drawn in the specified font in the specified format. More...
 
SizeF MeasureString (String const &str, System::SharedPtr< Font > const &font, int width, System::SharedPtr< StringFormat > const &stringFormat=nullptr) const
 Returns a size of the specified string when drawn in the specified font in the specified format. More...
 
SizeF MeasureString (String const &str, System::SharedPtr< Font > const &font, SizeF const &layoutArea, System::SharedPtr< StringFormat > const &stringFormat, int &charactersFitted, int &linesFilled) const
 NOT IMPLEMENTED. More...
 
SizeF MeasureString (String const &str, System::SharedPtr< Font > const &font, SizeF const &layoutArea, System::SharedPtr< StringFormat > const &stringFormat=nullptr) const
 Returns a size of the specified string when drawn in the specified font in the specified format. More...
 
IntPtr GetHdc ()
 NOT IMPLEMENTED. More...
 
void ReleaseHdc ()
 NOT IMPLEMENTED. More...
 
void ReleaseHdc (IntPtr hdc)
 NOT IMPLEMENTED. More...
 
float get_PageScale () const
 Returns the scaling between world units and page units for the current Graphics object. More...
 
void set_PageScale (float scale)
 Sets the scaling between world units and page units for the current Graphics object. More...
 
Point get_RenderingOrigin () const
 Returns a Point object that represents the rendering origin of the current Graphics object for dithering and for hatch brushes. More...
 
void set_RenderingOrigin (Point point)
 Sets a Point object that specifies the rendering origin of the current Graphics object for dithering and for hatch brushes. More...
 
SharedPtr< Drawing2D::Matrixget_Transform ()
 Returns the geometric world transformation for the current Graphics object. More...
 
void set_Transform (const SharedPtr< Drawing2D::Matrix > &matrix)
 Sets the geometric world transformation for the current Graphics object. More...
 
float get_DpiX ()
 Returns the horizontal resolution. More...
 
float get_DpiY ()
 Returns the vertical resolution. More...
 
SharedPtr< Regionget_Clip ()
 Returns a Region object that represents a region that limits the drawing area of the drawing surface represented by the current Graphics object. More...
 
void set_Clip (const SharedPtr< Region > &region)
 Sets a region that limits the drawing area of the drawing surface represented by the current. More...
 
void SetClip (const SharedPtr< Region > &region, Drawing2D::CombineMode combineMode=Drawing2D::CombineMode::Replace)
 Sets the clipping region of drawing surface represented by the current Graphics object to the result of the specified operation that combines the current clip region and the specified region. More...
 
void SetClip (Rectangle rect, Drawing2D::CombineMode combineMode=Drawing2D::CombineMode::Replace)
 Sets the clipping region of drawing surface represented by the current Graphics object to the result of the specified operation that combines the current clip region and the specified region. More...
 
void SetClip (RectangleF rect, Drawing2D::CombineMode combineMode=Drawing2D::CombineMode::Replace)
 Sets the clipping region of drawing surface represented by the current Graphics object to the result of the specified operation that combines the current clip region and the specified region. More...
 
void SetClip (const SharedPtr< Graphics > &graphics, Drawing2D::CombineMode combineMode=Drawing2D::CombineMode::Replace)
 NOT IMPLEMENTED. More...
 
void SetClip (const SharedPtr< Drawing2D::GraphicsPath > &path, Drawing2D::CombineMode combineMode=Drawing2D::CombineMode::Replace)
 Sets the clipping region of drawing surface represented by the current Graphics object to the result of the specified operation that combines the current clip region and the region specified by a graphics path. More...
 
void ExcludeClip (Rectangle rect)
 NOT IMPLEMENTED. More...
 
void ExcludeClip (const SharedPtr< Region > &region)
 NOT IMPLEMENTED. More...
 
void ResetClip ()
 Resets the clip region for this graphics to an infinite region. More...
 
void DrawPath (const SharedPtr< Pen > &pen, const SharedPtr< Drawing2D::GraphicsPath > &path)
 Draws the specified path using the specified pen. More...
 
void DrawLines (const SharedPtr< Pen > &pen, const System::ArrayPtr< System::Drawing::Point > &points)
 Draws a series of line segments using the specified pen. More...
 
void DrawLines (const SharedPtr< Pen > &pen, const System::ArrayPtr< System::Drawing::PointF > &points)
 Draws a series of line segments using the specified pen. More...
 
void DrawBezier (const SharedPtr< Pen > &pen, const Point &pt1, const Point &pt2, const Point &pt3, const Point &pt4)
 NOT IMPLEMENTED. More...
 
void DrawBezier (const SharedPtr< Pen > &pen, const PointF &pt1, const PointF &pt2, const PointF &pt3, const PointF &pt4)
 NOT IMPLEMENTED. More...
 
void DrawBezier (const SharedPtr< Pen > &pen, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)
 NOT IMPLEMENTED. More...
 
void DrawBeziers (const SharedPtr< Pen > &pen, const ArrayPtr< Point > &points)
 Draws a series of Bezier splines using the specified pen. More...
 
void DrawBeziers (const SharedPtr< Pen > &pen, const ArrayPtr< PointF > &points)
 Draws a series of Bezier splines using the specified pen. More...
 
void DrawClosedCurve (const SharedPtr< Pen > &pen, const ArrayPtr< Point > &points, float tension=0.5f, Drawing2D::FillMode fillmode=Drawing2D::FillMode::Alternate)
 Draws a closed spline using the specified pen. More...
 
void DrawClosedCurve (const SharedPtr< Pen > &pen, const ArrayPtr< PointF > &points, float tension=0.5f, Drawing2D::FillMode fillmode=Drawing2D::FillMode::Alternate)
 Draws a closed spline using the specified pen. More...
 
void DrawCurve (const SharedPtr< Pen > &pen, const ArrayPtr< Point > &points, float tension=0.5f)
 Draws a spline using the specified pen. More...
 
void DrawCurve (const SharedPtr< Pen > &pen, const ArrayPtr< PointF > &points, float tension=0.5f)
 Draws a spline using the specified pen. More...
 
void DrawCurve (const SharedPtr< Pen > &pen, const ArrayPtr< Point > &points, int32_t offset, int32_t numberOfSegments, float tension=0.5f)
 Draws a spline using the specified pen. More...
 
void DrawCurve (const SharedPtr< Pen > &pen, const ArrayPtr< PointF > &points, int32_t offset, int32_t numberOfSegments, float tension=0.5f)
 Draws a spline using the specified pen. More...
 
void FillClosedCurve (const SharedPtr< Brush > &brush, const ArrayPtr< PointF > &points, Drawing2D::FillMode fillmode=Drawing2D::FillMode::Alternate, float tension=0.5f)
 Draws a closed spline using the specified brush. More...
 
void FillClosedCurve (const SharedPtr< Brush > &brush, const ArrayPtr< Point > &points, Drawing2D::FillMode fillmode=Drawing2D::FillMode::Alternate, float tension=0.5f)
 Draws a closed spline using the specified brush. More...
 
void ResetTransform ()
 Resets the world transformation matrix of the current object so that it becomes an identity matrix. More...
 
void ScaleTransform (float sx, float sy, Drawing2D::MatrixOrder order=Drawing2D::MatrixOrder::Prepend)
 Applies the specified scale vector to the world transformation matrix of the current object. More...
 
void RotateTransform (float angle, Drawing2D::MatrixOrder order=Drawing2D::MatrixOrder::Prepend)
 Applies the specified rotation to the world transformation matrix of the current Graphics object in the specified order. More...
 
void TranslateTransform (float dx, float dy, Drawing2D::MatrixOrder order=Drawing2D::MatrixOrder::Prepend)
 Applies the specified translation vector to the world transformation matrix of the current Graphics object. More...
 
void MultiplyTransform (const SharedPtr< Drawing2D::Matrix > &matrix, Drawing2D::MatrixOrder order=Drawing2D::MatrixOrder::Prepend)
 Multiplies the world transformation matrix of the current Graphics object by the specified matrix. More...
 
void TranslateClip (int dx, int dy)
 NOT IMPLEMENTED. More...
 
void TranslateClip (float dx, float dy)
 NOT IMPLEMENTED. More...
 
void TransformPoints (Drawing2D::CoordinateSpace destSpace, Drawing2D::CoordinateSpace srcSpace, const ArrayPtr< System::Drawing::Point > &pts)
 NOT IMPLEMENTED. More...
 
void TransformPoints (Drawing2D::CoordinateSpace destSpace, Drawing2D::CoordinateSpace srcSpace, const ArrayPtr< System::Drawing::PointF > &pts)
 NOT IMPLEMENTED. More...
 
SharedPtr< Drawing2D::GraphicsStateSave ()
 Saves the current state of this object and returns the saved state. More...
 
void Restore (const SharedPtr< Drawing2D::GraphicsState > &graphicsState)
 Restores the state of this object from the saved state. More...
 
void Flush (Drawing2D::FlushIntention intention=Drawing2D::FlushIntention::Flush)
 Triggers the immediate execution of all pending draw operations. More...
 
void IntersectClip (const System::SharedPtr< Region > &region)
 Updates the clip region of this object to the intersection of the current clip and the specified clip. More...
 
void IntersectClip (System::Drawing::RectangleF rect)
 Updates the clip region of this object to the intersection of the current clip and the specified clip. More...
 
void IntersectClip (System::Drawing::Rectangle rect)
 Updates the clip region of this object to the intersection of the current clip and the specified clip. More...
 
bool IsVisible (Point point)
 Determines whether the specified point is contained within the visible clip region of the current Graphics object. More...
 
bool IsVisible (PointF point)
 NOT IMPLEMENTED. More...
 
bool IsVisible (Rectangle rect)
 NOT IMPLEMENTED. More...
 
bool IsVisible (RectangleF rect)
 NOT IMPLEMENTED. More...
 
bool IsVisible (int32_t x, int32_t y)
 NOT IMPLEMENTED. More...
 
bool IsVisible (float x, float y)
 NOT IMPLEMENTED. More...
 
bool IsVisible (float x, float y, float width, float height)
 NOT IMPLEMENTED. More...
 
bool IsVisible (int32_t x, int32_t y, int32_t width, int32_t height)
 NOT IMPLEMENTED. More...
 
SharedPtr< Drawing2D::GraphicsContainerBeginContainer ()
 Saves a container with the current state of this object, opens and uses a new container and returns the saved container. More...
 
SharedPtr< Drawing2D::GraphicsContainerBeginContainer (Rectangle dstrect, Rectangle srcrect, GraphicsUnit unit)
 Saves a container with the current state of this object, opens and uses a new container and returns the saved container. More...
 
SharedPtr< Drawing2D::GraphicsContainerBeginContainer (RectangleF dstrect, RectangleF srcrect, GraphicsUnit unit)
 Saves a container with the current state of this object, opens and uses a new container and returns the saved container. More...
 
void EndContainer (const SharedPtr< Drawing2D::GraphicsContainer > &container)
 Closes the current container and restores the state of this object from the state of saved container. More...
 
void EnumerateMetafile (const SharedPtr< Imaging::Metafile > &metafile, const ArrayPtr< PointF > &destPoints, Graphics::EnumerateMetafileProc callback)
 NOT IMPLEMENTED. More...
 
void EnumerateMetafile (const SharedPtr< Imaging::Metafile > &metafile, const ArrayPtr< Point > &destPoints, Graphics::EnumerateMetafileProc callback)
 NOT IMPLEMENTED. More...
 
void EnumerateMetafile (const SharedPtr< Imaging::Metafile > &metafile, Point destPoint, Graphics::EnumerateMetafileProc callback)
 NOT IMPLEMENTED. More...
 
void EnumerateMetafile (const SharedPtr< Imaging::Metafile > &metafile, PointF destPoint, Graphics::EnumerateMetafileProc callback)
 NOT IMPLEMENTED. More...
 
void EnumerateMetafile (const SharedPtr< Imaging::Metafile > &metafile, Rectangle destRect, Graphics::EnumerateMetafileProc callback)
 NOT IMPLEMENTED. More...
 
void EnumerateMetafile (const SharedPtr< Imaging::Metafile > &metafile, RectangleF destRect, Graphics::EnumerateMetafileProc callback)
 NOT IMPLEMENTED. More...
 
void EnumerateMetafile (const SharedPtr< Imaging::Metafile > &metafile, Point destPoint, Rectangle srcRect, GraphicsUnit srcUnit, Graphics::EnumerateMetafileProc callback)
 NOT IMPLEMENTED. More...
 
void EnumerateMetafile (const SharedPtr< Imaging::Metafile > &metafile, PointF destPoint, RectangleF srcRect, GraphicsUnit srcUnit, Graphics::EnumerateMetafileProc callback)
 NOT IMPLEMENTED. More...
 
void EnumerateMetafile (const SharedPtr< Imaging::Metafile > &metafile, const ArrayPtr< Point > &destPoints, Rectangle srcRect, GraphicsUnit srcUnit, Graphics::EnumerateMetafileProc callback)
 NOT IMPLEMENTED. More...
 
void EnumerateMetafile (const SharedPtr< Imaging::Metafile > &metafile, const ArrayPtr< PointF > &destPoints, RectangleF srcRect, GraphicsUnit srcUnit, Graphics::EnumerateMetafileProc callback)
 NOT IMPLEMENTED. More...
 
void EnumerateMetafile (const SharedPtr< Imaging::Metafile > &metafile, Rectangle destRect, Rectangle srcRect, GraphicsUnit srcUnit, Graphics::EnumerateMetafileProc callback)
 NOT IMPLEMENTED. More...
 
void EnumerateMetafile (const SharedPtr< Imaging::Metafile > &metafile, RectangleF destRect, RectangleF srcRect, GraphicsUnit srcUnit, Graphics::EnumerateMetafileProc callback)
 NOT IMPLEMENTED. More...
 
void AddMetafileComment (const System::ArrayPtr< uint8_t > &data)
 NOT IMPLEMENTED. More...
 
void CopyFromScreen (Point upperLeftSource, Point upperLeftDestination, Size blockRegionSize, CopyPixelOperation copyPixelOperation=CopyPixelOperation::SourceCopy)
 NOT IMPLEMENTED. More...
 
void CopyFromScreen (int32_t sourceX, int32_t sourceY, int32_t destinationX, int32_t destinationY, Size blockRegionSize, CopyPixelOperation copyPixelOperation=CopyPixelOperation::SourceCopy)
 NOT IMPLEMENTED. More...
 
int32_t get_TextContrast () const
 NOT IMPLEMENTED. More...
 
void set_TextContrast (int32_t value)
 NOT IMPLEMENTED. More...
 
bool get_IsClipEmpty () const
 NOT IMPLEMENTED. More...
 
bool get_IsVisibleClipEmpty () const
 NOT IMPLEMENTED. More...
 
RectangleF get_VisibleClipBounds () const
 Returns the RectangleF object that represents a bounding rectangle of the visible clipping region of the current Graphics object. More...
 
Color GetNearestColor (Color color)
 NOT IMPLEMENTED. More...
 
void Dispose ()
 Releases all operating system resources acquired by the current object. More...
 
 ~Graphics ()
 
SkCanvas * GetSkCanvas () const
 
- Public Member Functions inherited from System::Object
 Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ~Object ()
 Destroys object. Frees all internal data structures. More...
 
 Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared reference counter. More...
 
void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual String ToString () const
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual void SetTemplateWeakPtr (uint32_t argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
virtual bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. More...
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 Specialization of Object::ReferenceEquals for case of string and nullptr. More...
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 Specialization of Object::ReferenceEquals for case of strings. More...
 

Static Public Member Functions

static SharedPtr< GraphicsFromImage (const SharedPtr< Image > &image)
 Creates a new Graphics object from the specified image. More...
 
static SharedPtr< GraphicsFromHwnd (IntPtr hwnd)
 NOT IMPLEMENTED. More...
 
static SharedPtr< GraphicsFromHwndInternal (IntPtr hwnd)
 NOT IMPLEMENTED. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Implements C# typeof(System.Object) construct. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool Equals (double const &objA, double const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 

Detailed Description

Represents a drawing surface. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

Member Typedef Documentation

◆ DrawImageAbort

using System::Drawing::Graphics::DrawImageAbort = std::function<bool(IntPtr ptr)>

The type of a callback fuction object used as an argument for DrawImage method.

◆ EnumerateMetafileProc

The type of a callback fuction object used as an argument for EnumerateMetafile method.

Constructor & Destructor Documentation

◆ ~Graphics()

System::Drawing::Graphics::~Graphics ( )

Member Function Documentation

◆ AddMetafileComment()

void System::Drawing::Graphics::AddMetafileComment ( const System::ArrayPtr< uint8_t > &  data)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ BeginContainer() [1/3]

SharedPtr< Drawing2D::GraphicsContainer > System::Drawing::Graphics::BeginContainer ( )

Saves a container with the current state of this object, opens and uses a new container and returns the saved container.

◆ BeginContainer() [2/3]

SharedPtr< Drawing2D::GraphicsContainer > System::Drawing::Graphics::BeginContainer ( Rectangle  dstrect,
Rectangle  srcrect,
GraphicsUnit  unit 
)

Saves a container with the current state of this object, opens and uses a new container and returns the saved container.

Parameters
dstrectThe rectangle that specifies a scale transformation of the new container. Used together with srcrect
srcrectThe rectangle that specifies a scale transformation of the new container. Used together with dstrect
unitThe value that specifies the unit of measure of the new container

◆ BeginContainer() [3/3]

SharedPtr< Drawing2D::GraphicsContainer > System::Drawing::Graphics::BeginContainer ( RectangleF  dstrect,
RectangleF  srcrect,
GraphicsUnit  unit 
)

Saves a container with the current state of this object, opens and uses a new container and returns the saved container.

Parameters
dstrectThe rectangle that specifies a scale transformation of the new container. Used together with srcrect
srcrectThe rectangle that specifies a scale transformation of the new container. Used together with dstrect
unitThe value that specifies the unit of measure of the new container

◆ Clear()

void System::Drawing::Graphics::Clear ( Color  color)

Clears the drawing surface represented by the current object and fills it with the specified color.

Parameters
colorThe color to fill the surface with

◆ CopyFromScreen() [1/2]

void System::Drawing::Graphics::CopyFromScreen ( int32_t  sourceX,
int32_t  sourceY,
int32_t  destinationX,
int32_t  destinationY,
Size  blockRegionSize,
CopyPixelOperation  copyPixelOperation = CopyPixelOperation::SourceCopy 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ CopyFromScreen() [2/2]

void System::Drawing::Graphics::CopyFromScreen ( Point  upperLeftSource,
Point  upperLeftDestination,
Size  blockRegionSize,
CopyPixelOperation  copyPixelOperation = CopyPixelOperation::SourceCopy 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ Dispose()

void System::Drawing::Graphics::Dispose ( )
inline

Releases all operating system resources acquired by the current object.

◆ DrawArc() [1/4]

void System::Drawing::Graphics::DrawArc ( const SharedPtr< Pen > &  pen,
float  x,
float  y,
float  width,
float  height,
float  startAngle,
float  sweepAngle 
)

Draws the specified arc using the specified pen on the surface represented by the current object.

Parameters
penA pen to use when drawing the arc
xThe X coordinate of the upper left corner of the rectangle that defines the ellipse
yThe Y coordinate of the upper left corner of the rectangle that defines the ellipse
widthThe width of the rectangle that defines the ellipse
heightThe height of the rectangle that defines the ellipse
startAngleAngle in degrees measured clockwise from the X axis to the starting point of the arc
sweepAngleAngle in degrees measured clockwise from the startAngle to ending point of the arc

◆ DrawArc() [2/4]

void System::Drawing::Graphics::DrawArc ( const SharedPtr< Pen > &  pen,
int32_t  x,
int32_t  y,
int32_t  width,
int32_t  height,
int32_t  startAngle,
int32_t  sweepAngle 
)

Draws the specified arc using the specified pen on the surface represented by the current object.

Parameters
penA pen to use when drawing the arc
xThe X coordinate of the upper left corner of the rectangle that defines the ellipse
yThe Y coordinate of the upper left corner of the rectangle that defines the ellipse
widthThe width of the rectangle that defines the ellipse
heightThe height of the rectangle that defines the ellipse
startAngleAngle in degrees measured clockwise from the X axis to the starting point of the arc
sweepAngleAngle in degrees measured clockwise from the startAngle to ending point of the arc

◆ DrawArc() [3/4]

void System::Drawing::Graphics::DrawArc ( const SharedPtr< Pen > &  pen,
Rectangle  rect,
float  startAngle,
float  sweepAngle 
)

Draws the specified arc using the specified pen on the surface represented by the current object.

Parameters
penA pen to use when drawing the arc
rectThe rectangle that defines the ellipse
startAngleAngle in degrees measured clockwise from the X axis to the starting point of the arc
sweepAngleAngle in degrees measured clockwise from the startAngle to ending point of the arc

◆ DrawArc() [4/4]

void System::Drawing::Graphics::DrawArc ( const SharedPtr< Pen > &  pen,
RectangleF  rect,
float  startAngle,
float  sweepAngle 
)

Draws the specified arc using the specified pen on the surface represented by the current object.

Parameters
penA pen to use when drawing the arc
rectThe rectangle that defines the ellipse
startAngleAngle in degrees measured clockwise from the X axis to the starting point of the arc
sweepAngleAngle in degrees measured clockwise from the startAngle to ending point of the arc

◆ DrawBezier() [1/3]

void System::Drawing::Graphics::DrawBezier ( const SharedPtr< Pen > &  pen,
const Point pt1,
const Point pt2,
const Point pt3,
const Point pt4 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ DrawBezier() [2/3]

void System::Drawing::Graphics::DrawBezier ( const SharedPtr< Pen > &  pen,
const PointF pt1,
const PointF pt2,
const PointF pt3,
const PointF pt4 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ DrawBezier() [3/3]

void System::Drawing::Graphics::DrawBezier ( const SharedPtr< Pen > &  pen,
float  x1,
float  y1,
float  x2,
float  y2,
float  x3,
float  y3,
float  x4,
float  y4 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ DrawBeziers() [1/2]

void System::Drawing::Graphics::DrawBeziers ( const SharedPtr< Pen > &  pen,
const ArrayPtr< Point > &  points 
)

Draws a series of Bezier splines using the specified pen.

Parameters
penA pen to use when drawing the splines
pointsArray of points that determines the curve

◆ DrawBeziers() [2/2]

void System::Drawing::Graphics::DrawBeziers ( const SharedPtr< Pen > &  pen,
const ArrayPtr< PointF > &  points 
)

Draws a series of Bezier splines using the specified pen.

Parameters
penA pen to use when drawing the splines
pointsArray of points that determines the curve

◆ DrawClosedCurve() [1/2]

void System::Drawing::Graphics::DrawClosedCurve ( const SharedPtr< Pen > &  pen,
const ArrayPtr< Point > &  points,
float  tension = 0.5f,
Drawing2D::FillMode  fillmode = Drawing2D::FillMode::Alternate 
)

Draws a closed spline using the specified pen.

Parameters
penA pen to use when drawing the spline
pointsArray of points that determines the spline
tensionValue that specifies the tension of the spline
fillmodeIGNORED

◆ DrawClosedCurve() [2/2]

void System::Drawing::Graphics::DrawClosedCurve ( const SharedPtr< Pen > &  pen,
const ArrayPtr< PointF > &  points,
float  tension = 0.5f,
Drawing2D::FillMode  fillmode = Drawing2D::FillMode::Alternate 
)

Draws a closed spline using the specified pen.

Parameters
penA pen to use when drawing the spline
pointsArray of points that determines the spline
tensionValue that specifies the tension of the spline
fillmodeIGNORED

◆ DrawCurve() [1/4]

void System::Drawing::Graphics::DrawCurve ( const SharedPtr< Pen > &  pen,
const ArrayPtr< Point > &  points,
float  tension = 0.5f 
)

Draws a spline using the specified pen.

Parameters
penA pen to use when drawing the spline
pointsArray of points that determines the spline
tensionValue that specifies the tension of the spline

◆ DrawCurve() [2/4]

void System::Drawing::Graphics::DrawCurve ( const SharedPtr< Pen > &  pen,
const ArrayPtr< Point > &  points,
int32_t  offset,
int32_t  numberOfSegments,
float  tension = 0.5f 
)

Draws a spline using the specified pen.

Parameters
penA pen to use when drawing the spline
pointsArray of points that determines the spline
offsetOffset from the 1st element in the points array
numberOfSegmentsNumber of segments to include into the curve
tensionValue that specifies the tension of the spline

◆ DrawCurve() [3/4]

void System::Drawing::Graphics::DrawCurve ( const SharedPtr< Pen > &  pen,
const ArrayPtr< PointF > &  points,
float  tension = 0.5f 
)

Draws a spline using the specified pen.

Parameters
penA pen to use when drawing the spline
pointsArray of points that determines the spline
tensionValue that specifies the tension of the spline

◆ DrawCurve() [4/4]

void System::Drawing::Graphics::DrawCurve ( const SharedPtr< Pen > &  pen,
const ArrayPtr< PointF > &  points,
int32_t  offset,
int32_t  numberOfSegments,
float  tension = 0.5f 
)

Draws a spline using the specified pen.

Parameters
penA pen to use when drawing the spline
pointsArray of points that determines the spline
offsetOffset from the 1st element in the points array
numberOfSegmentsNumber of segments to include into the curve
tensionValue that specifies the tension of the spline

◆ DrawEllipse() [1/4]

void System::Drawing::Graphics::DrawEllipse ( const SharedPtr< Pen > &  pen,
float  x,
float  y,
float  width,
float  height 
)

Draws the specified ellipse using the specified pen on the surface represented by the current object.

Parameters
penA pen to use when drawing the ellipse
xThe X coordinate of the upper left corner of the rectangle that defines the ellipse
yThe Y coordinate of the upper left corner of the rectangle that defines the ellipse
widthThe width of the rectangle that defines the ellipse
heightThe height of the rectangle that defines the ellipse

◆ DrawEllipse() [2/4]

void System::Drawing::Graphics::DrawEllipse ( const SharedPtr< Pen > &  pen,
int  x,
int  y,
int  width,
int  height 
)

Draws the specified ellipse using the specified pen on the surface represented by the current object.

Parameters
penA pen to use when drawing the ellipse
xThe X coordinate of the upper left corner of the rectangle that defines the ellipse
yThe Y coordinate of the upper left corner of the rectangle that defines the ellipse
widthThe width of the rectangle that defines the ellipse
heightThe height of the rectangle that defines the ellipse

◆ DrawEllipse() [3/4]

void System::Drawing::Graphics::DrawEllipse ( const SharedPtr< Pen > &  pen,
Rectangle  rect 
)

Draws the specified ellipse using the specified pen on the surface represented by the current object.

Parameters
penA pen to use when drawing the ellipse
rectThe rectangle that defines the ellipse

◆ DrawEllipse() [4/4]

void System::Drawing::Graphics::DrawEllipse ( const SharedPtr< Pen > &  pen,
RectangleF  rect 
)

Draws the specified ellipse using the specified pen on the surface represented by the current object.

Parameters
penA pen to use when drawing the ellipse
rectThe rectangle that defines the ellipse

◆ DrawIcon() [1/2]

void System::Drawing::Graphics::DrawIcon ( const SharedPtr< Icon > &  icon,
int32_t  x,
int32_t  y 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ DrawIcon() [2/2]

void System::Drawing::Graphics::DrawIcon ( const SharedPtr< Icon > &  icon,
Rectangle  targetRect 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ DrawIconUnstretched()

void System::Drawing::Graphics::DrawIconUnstretched ( const SharedPtr< Icon > &  icon,
Rectangle  targetRect 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ DrawImage() [1/28]

void System::Drawing::Graphics::DrawImage ( const SharedPtr< Image > &  image,
const ArrayPtr< Point > &  destPoints,
Rectangle  srcRect,
GraphicsUnit  srcUnit 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ DrawImage() [2/28]

void System::Drawing::Graphics::DrawImage ( const SharedPtr< Image > &  image,
const ArrayPtr< Point > &  destPoints,
Rectangle  srcRect,
GraphicsUnit  srcUnit,
const SharedPtr< Imaging::ImageAttributes > &  imageAttr 
)

Draws the specified region of the specified image at the specified location.

Parameters
imageThe image to draw
destPointsAn array containing three points that define a parallelogram on the drawing surface to draw the image to
srcRectA rectangle that defines the region of the specified image to draw
srcUnitThe measurement units used by srcRect parameter
imageAttrSpecifies coloring and gamma information for the image

◆ DrawImage() [3/28]

void System::Drawing::Graphics::DrawImage ( const SharedPtr< Image > &  image,
const ArrayPtr< PointF > &  destPoints 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ DrawImage() [4/28]

void System::Drawing::Graphics::DrawImage ( const SharedPtr< Image > &  image,
const ArrayPtr< PointF > &  destPoints,
RectangleF  srcRect,
GraphicsUnit  srcUnit 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ DrawImage() [5/28]

void System::Drawing::Graphics::DrawImage ( const SharedPtr< Image > &  image,
const Rectangle rect 
)

Draws the specified image at the specified location.

Parameters
imageThe image to draw
rectA rectangle to draw the image to

◆ DrawImage() [6/28]

void System::Drawing::Graphics::DrawImage ( const SharedPtr< Image > &  image,
const RectangleF rect 
)

Draws the specified image at the specified location.

Parameters
imageThe image to draw
rectA rectangle to draw the image to

◆ DrawImage() [7/28]

void System::Drawing::Graphics::DrawImage ( const SharedPtr< Image > &  image,
const System::ArrayPtr< Point > &  destPoints 
)

NOT IMPLEMENTED.

Parameters
imageIGNORED
destPointsIGNORED
Exceptions
NotImplementedExceptionAlways

◆ DrawImage() [8/28]

void System::Drawing::Graphics::DrawImage ( const SharedPtr< Image > &  image,
const System::ArrayPtr< PointF > &  destPoints,
const RectangleF srcRect,
GraphicsUnit  srcUnit,
const Imaging::ImageAttributesPtr imgAttributes 
)

Draws the specified region of the specified image at the specified location.

Parameters
imageThe image to draw
destPointsAn array containing three points that define a parallelogram on the drawing surface to draw the image to
srcRectA rectangle that defines the region of the specified image to draw
srcUnitThe measurement units used by srcRect parameter
imgAttributesSpecifies coloring and gamma information for the image

◆ DrawImage() [9/28]

void System::Drawing::Graphics::DrawImage ( const SharedPtr< Image > &  image,
const System::Details::ArrayView< PointF > &  destPoints,
const RectangleF srcRect,
GraphicsUnit  srcUnit,
const Imaging::ImageAttributesPtr imgAttributes 
)

Draws the specified region of the specified image at the specified location.

Parameters
imageThe image to draw
destPointsAn array view containing three points that define a parallelogram on the drawing surface to draw the image to
srcRectA rectangle that defines the region of the specified image to draw
srcUnitThe measurement units used by srcRect parameter
imgAttributesSpecifies coloring and gamma information for the image

◆ DrawImage() [10/28]

template<std::size_t N>
void System::Drawing::Graphics::DrawImage ( const SharedPtr< Image > &  image,
const System::Details::StackArray< PointF, N > &  destPoints,
const RectangleF srcRect,
GraphicsUnit  srcUnit,
const Imaging::ImageAttributesPtr imgAttributes 
)
inline

Draws the specified region of the specified image at the specified location.

Parameters
imageThe image to draw
destPointsAn stack array containing three points that define a parallelogram on the drawing surface to draw the image to
srcRectA rectangle that defines the region of the specified image to draw
srcUnitThe measurement units used by srcRect parameter
imgAttributesSpecifies coloring and gamma information for the image

◆ DrawImage() [11/28]

void System::Drawing::Graphics::DrawImage ( const SharedPtr< Image > &  image,
float  x,
float  y 
)

Draws the specified image at the specified location.

Parameters
imageThe image to draw
xThe X coordinate of the upper left corner of the drawn image
yThe Y coordinate of the upper left corner of the drawn image

◆ DrawImage() [12/28]

void System::Drawing::Graphics::DrawImage ( const SharedPtr< Image > &  image,
float  x,
float  y,
float  width,
float  height 
)

Draws the specified image to the specified rectangle.

Parameters
imageThe image to draw
xThe X coordinate of the upper left corner of the rectangle to draw the image to
yThe Y coordinate of the upper left corner of the rectangle to draw the image to
widthThe width of the upper left corner of the rectangle to draw the image to
heightThe height of the upper left corner of the rectangle to draw the image to

◆ DrawImage() [13/28]

void System::Drawing::Graphics::DrawImage ( const SharedPtr< Image > &  image,
float  x,
float  y,
RectangleF  srcRect,
GraphicsUnit  srcUnit 
)

Draws the specified region of the specified image at the specified location.

Parameters
imageThe image to draw
xThe X coordinate of the upper left corner of the rectangle to draw the image to
yThe Y coordinate of the upper left corner of the rectangle to draw the image to
srcRectA rectangle that defines the region of the specified image to draw
srcUnitThe measurement units used by srcRect parameter

◆ DrawImage() [14/28]

void System::Drawing::Graphics::DrawImage ( const SharedPtr< Image > &  image,
int  x,
int  y 
)

Draws the specified image at the specified location.

Parameters
imageThe image to draw
xThe X coordinate of the upper left corner of the drawn image
yThe Y coordinate of the upper left corner of the drawn image

◆ DrawImage() [15/28]

void System::Drawing::Graphics::DrawImage ( const SharedPtr< Image > &  image,
int  x,
int  y,
int  width,
int  height 
)

Draws the specified image to the specified rectangle.

Parameters
imageThe image to draw
xThe X coordinate of the upper left corner of the rectangle to draw the image to
yThe Y coordinate of the upper left corner of the rectangle to draw the image to
widthThe width of the upper left corner of the rectangle to draw the image to
heightThe height of the upper left corner of the rectangle to draw the image to

◆ DrawImage() [16/28]

void System::Drawing::Graphics::DrawImage ( const SharedPtr< Image > &  image,
int  x,
int  y,
Rectangle  srcRect,
GraphicsUnit  srcUnit 
)

Draws the specified region of the specified image at the specified location.

Parameters
imageThe image to draw
xThe X coordinate of the upper left corner of the rectangle to draw the image to
yThe Y coordinate of the upper left corner of the rectangle to draw the image to
srcRectA rectangle that defines the region of the specified image to draw
srcUnitThe measurement units used by srcRect parameter

◆ DrawImage() [17/28]

void System::Drawing::Graphics::DrawImage ( const SharedPtr< Image > &  image,
Point  pt 
)

Draws the specified image at the specified location.

Parameters
imageThe image to draw
ptThe location of the upper left corner of the drawn image

◆ DrawImage() [18/28]

void System::Drawing::Graphics::DrawImage ( const SharedPtr< Image > &  image,
PointF  pt 
)

Draws the specified image at the specified location.

Parameters
imageThe image to draw
ptThe location of the upper left corner of the drawn image

◆ DrawImage() [19/28]

void System::Drawing::Graphics::DrawImage ( const SharedPtr< Image > &  image,
Rectangle  destRect,
float  srcX,
float  srcY,
float  srcWidth,
float  srcHeight,
GraphicsUnit  srcUnit 
)

Draws the specified region of the specified image to the specified rectangle.

Parameters
imageThe image to draw
destRectA rectangle to draw the image to
srcXThe X coordinate of the upper left corner of the rectangle that specifies the portion of the image to draw
srcYThe Y coordinate of the upper left corner of the rectangle that specifies the portion of the image to draw
srcWidthThe width of the upper left corner of the rectangle that specifies the portion of the image to draw
srcHeightThe height of the upper left corner of the rectangle that specifies the portion of the image to draw
srcUnitThe measurement units in which parameters srcX, srcY, srcWidth and srcHeight are specified

◆ DrawImage() [20/28]

void System::Drawing::Graphics::DrawImage ( const SharedPtr< Image > &  image,
Rectangle  destRect,
float  srcX,
float  srcY,
float  srcWidth,
float  srcHeight,
GraphicsUnit  srcUnit,
const Imaging::ImageAttributesPtr imgAttributes 
)

Draws the specified region of the specified image to the specified rectangle.

Parameters
imageThe image to draw
destRectA rectangle to draw the image to
srcXThe X coordinate of the upper left corner of the rectangle that specifies the portion of the image to draw
srcYThe Y coordinate of the upper left corner of the rectangle that specifies the portion of the image to draw
srcWidthThe width of the upper left corner of the rectangle that specifies the portion of the image to draw
srcHeightThe height of the upper left corner of the rectangle that specifies the portion of the image to draw
srcUnitThe measurement units in which parameters srcX, srcY, srcWidth and srcHeight are specified
imgAttributesSpecifies coloring and gamma information for the image

◆ DrawImage() [21/28]

void System::Drawing::Graphics::DrawImage ( const SharedPtr< Image > &  image,
Rectangle  destRect,
float  srcX,
float  srcY,
float  srcWidth,
float  srcHeight,
GraphicsUnit  srcUnit,
const Imaging::ImageAttributesPtr imgAttributes,
Graphics::DrawImageAbort  callback 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ DrawImage() [22/28]

void System::Drawing::Graphics::DrawImage ( const SharedPtr< Image > &  image,
Rectangle  destRect,
float  srcX,
float  srcY,
float  srcWidth,
float  srcHeight,
GraphicsUnit  srcUnit,
const Imaging::ImageAttributesPtr imgAttributes,
Graphics::DrawImageAbort  callback,
IntPtr  callbackData 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ DrawImage() [23/28]

void System::Drawing::Graphics::DrawImage ( const SharedPtr< Image > &  image,
Rectangle  destRect,
int  srcX,
int  srcY,
int  srcWidth,
int  srcHeight,
GraphicsUnit  srcUnit 
)

Draws the specified region of the specified image to the specified rectangle.

Parameters
imageThe image to draw
destRectA rectangle to draw the image to
srcXThe X coordinate of the upper left corner of the rectangle that specifies the portion of the image to draw
srcYThe Y coordinate of the upper left corner of the rectangle that specifies the portion of the image to draw
srcWidthThe width of the upper left corner of the rectangle that specifies the portion of the image to draw
srcHeightThe height of the upper left corner of the rectangle that specifies the portion of the image to draw
srcUnitThe measurement units in which parameters srcX, srcY, srcWidth and srcHeight are specified

◆ DrawImage() [24/28]

void System::Drawing::Graphics::DrawImage ( const SharedPtr< Image > &  image,
Rectangle  destRect,
int  srcX,
int  srcY,
int  srcWidth,
int  srcHeight,
GraphicsUnit  srcUnit,
const Imaging::ImageAttributesPtr imgAttributes 
)

Draws the specified region of the specified image to the specified rectangle.

Parameters
imageThe image to draw
destRectA rectangle to draw the image to
srcXThe X coordinate of the upper left corner of the rectangle that specifies the portion of the image to draw
srcYThe Y coordinate of the upper left corner of the rectangle that specifies the portion of the image to draw
srcWidthThe width of the upper left corner of the rectangle that specifies the portion of the image to draw
srcHeightThe height of the upper left corner of the rectangle that specifies the portion of the image to draw
srcUnitThe measurement units in which parameters srcX, srcY, srcWidth and srcHeight are specified
imgAttributesSpecifies coloring and gamma information for the image

◆ DrawImage() [25/28]

void System::Drawing::Graphics::DrawImage ( const SharedPtr< Image > &  image,
Rectangle  destRect,
int  srcX,
int  srcY,
int  srcWidth,
int  srcHeight,
GraphicsUnit  srcUnit,
const Imaging::ImageAttributesPtr imgAttributes,
Graphics::DrawImageAbort  callback 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ DrawImage() [26/28]

void System::Drawing::Graphics::DrawImage ( const SharedPtr< Image > &  image,
Rectangle  destRect,
int  srcX,
int  srcY,
int  srcWidth,
int  srcHeight,
GraphicsUnit  srcUnit,
const Imaging::ImageAttributesPtr imgAttributes,
Graphics::DrawImageAbort  callback,
IntPtr  callbackData 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ DrawImage() [27/28]

void System::Drawing::Graphics::DrawImage ( const SharedPtr< Image > &  image,
Rectangle  destRect,
Rectangle  srcRect,
GraphicsUnit  srcUnit 
)

Draws the specified region of the specified image at the specified location.

Parameters
imageThe image to draw
destRectA rectangle to draw the image to
srcRectA rectangle that defines the region of the specified image to draw
srcUnitThe measurement units used by srcRect parameter

◆ DrawImage() [28/28]

void System::Drawing::Graphics::DrawImage ( const SharedPtr< Image > &  image,
RectangleF  destRect,
RectangleF  srcRect,
GraphicsUnit  srcUnit 
)

Draws the specified region of the specified image at the specified location.

Parameters
imageThe image to draw
destRectA rectangle to draw the image to
srcRectA rectangle that defines the region of the specified image to draw
srcUnitThe measurement units used by srcRect parameter

◆ DrawImageUnscaled() [1/4]

void System::Drawing::Graphics::DrawImageUnscaled ( const SharedPtr< Image > &  image,
const Point point 
)

Draws a specified image using its original physical size at a specified location.

Parameters
imageThe image to draw
pointThe Point structure that specifies the upper-left corner of the drawn image.

◆ DrawImageUnscaled() [2/4]

void System::Drawing::Graphics::DrawImageUnscaled ( const SharedPtr< Image > &  image,
const Rectangle rect 
)

Draws a specified image using its original physical size at a specified location.

Parameters
imageThe image to draw
rectThe rectangle that specifies the upper-left corner of the drawn image. The X and Y properties of the rectangle specify the upper-left corner. The width and height values are ignored.

◆ DrawImageUnscaled() [3/4]

void System::Drawing::Graphics::DrawImageUnscaled ( const SharedPtr< Image > &  image,
int  x,
int  y 
)

Draws the specified image using its original physical size at the specified location.

Parameters
imageThe image to draw
xThe X coordinate of the upper left corner of the drawn image
yThe Y coordinate of the upper left corner of the drawn image

◆ DrawImageUnscaled() [4/4]

void System::Drawing::Graphics::DrawImageUnscaled ( const SharedPtr< Image > &  image,
int  x,
int  y,
int  width,
int  height 
)

Draws a specified image using its original physical size at a specified location.

Parameters
imageThe image to draw
xThe X coordinate of the upper left corner of the drawn image
yThe Y coordinate of the upper left corner of the drawn image
widthNot used
heightNot used

◆ DrawImageUnscaledAndClipped()

void System::Drawing::Graphics::DrawImageUnscaledAndClipped ( const SharedPtr< Image > &  image,
Rectangle  rectangle 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ DrawLine() [1/4]

void System::Drawing::Graphics::DrawLine ( const SharedPtr< Pen > &  pen,
float  x1,
float  y1,
float  x2,
float  y2 
)

Draws the specified line using the specified pen.

Parameters
penA Pen object that specifies graphical properties of the line to draw
x1The X-coordinate of the first point defining the line to draw
y1The Y-coordinate of the first point defining the line to draw
x2The X-coordinate of the second point defining the line to draw
y2The Y-coordinate of the second point defining the line to draw

◆ DrawLine() [2/4]

void System::Drawing::Graphics::DrawLine ( const SharedPtr< Pen > &  pen,
int  x1,
int  y1,
int  x2,
int  y2 
)

Draws the specified line using the specified pen.

Parameters
penA Pen object that specifies graphical properties of the line to draw
x1The X-coordinate of the first point defining the line to draw
y1The Y-coordinate of the first point defining the line to draw
x2The X-coordinate of the second point defining the line to draw
y2The Y-coordinate of the second point defining the line to draw

◆ DrawLine() [3/4]

void System::Drawing::Graphics::DrawLine ( const SharedPtr< Pen > &  pen,
Point  pt1,
Point  pt2 
)

Draws the specified line using the specified pen.

Parameters
penA Pen object that specifies graphical properties of the line to draw
pt1The first point defining the line to draw
pt2The second point defining the line to draw

◆ DrawLine() [4/4]

void System::Drawing::Graphics::DrawLine ( const SharedPtr< Pen > &  pen,
PointF  pt1,
PointF  pt2 
)

Draws the specified line using the specified pen.

Parameters
penA Pen object that specifies graphical properties of the line to draw
pt1The first point defining the line to draw
pt2The second point defining the line to draw

◆ DrawLines() [1/2]

void System::Drawing::Graphics::DrawLines ( const SharedPtr< Pen > &  pen,
const System::ArrayPtr< System::Drawing::Point > &  points 
)

Draws a series of line segments using the specified pen.

Parameters
penA pen to use when drawing the lines
pointsArray of points to connect

◆ DrawLines() [2/2]

void System::Drawing::Graphics::DrawLines ( const SharedPtr< Pen > &  pen,
const System::ArrayPtr< System::Drawing::PointF > &  points 
)

Draws a series of line segments using the specified pen.

Parameters
penA pen to use when drawing the lines
pointsArray of points to connect

◆ DrawPath()

void System::Drawing::Graphics::DrawPath ( const SharedPtr< Pen > &  pen,
const SharedPtr< Drawing2D::GraphicsPath > &  path 
)

Draws the specified path using the specified pen.

Parameters
penA Pen object to use for drawing
pathA graphics path to draw

◆ DrawPie() [1/4]

void System::Drawing::Graphics::DrawPie ( const SharedPtr< Pen > &  pen,
float  x,
float  y,
float  width,
float  height,
float  startAngle,
float  sweepAngle 
)

Draws the specified pie using the specified pen on the surface represented by the current object.

Parameters
penA pen to use when drawing the pie
xThe X coordinate of the upper left corner of the rectangle that defines the ellipse
yThe Y coordinate of the upper left corner of the rectangle that defines the ellipse
widthThe width of the rectangle that defines the ellipse
heightThe height of the rectangle that defines the ellipse
startAngleAngle in degrees measured clockwise from the X axis to the starting point of the pie
sweepAngleAngle in degrees measured clockwise from the startAngle to ending point of the pie

◆ DrawPie() [2/4]

void System::Drawing::Graphics::DrawPie ( const SharedPtr< Pen > &  pen,
int32_t  x,
int32_t  y,
int32_t  width,
int32_t  height,
int32_t  startAngle,
int32_t  sweepAngle 
)

Draws the specified pie using the specified pen on the surface represented by the current object.

Parameters
penA pen to use when drawing the pie
xThe X coordinate of the upper left corner of the rectangle that defines the ellipse
yThe Y coordinate of the upper left corner of the rectangle that defines the ellipse
widthThe width of the rectangle that defines the ellipse
heightThe height of the rectangle that defines the ellipse
startAngleAngle in degrees measured clockwise from the X axis to the starting point of the pie
sweepAngleAngle in degrees measured clockwise from the startAngle to ending point of the pie

◆ DrawPie() [3/4]

void System::Drawing::Graphics::DrawPie ( const SharedPtr< Pen > &  pen,
Rectangle  rect,
float  startAngle,
float  sweepAngle 
)

Draws the specified pie using the specified pen on the surface represented by the current object.

Parameters
penA pen to use when drawing the pie
rectThe rectangle that defines the ellipse
startAngleAngle in degrees measured clockwise from the X axis to the starting point of the pie
sweepAngleAngle in degrees measured clockwise from the startAngle to ending point of the pie

◆ DrawPie() [4/4]

void System::Drawing::Graphics::DrawPie ( const SharedPtr< Pen > &  pen,
RectangleF  rect,
float  startAngle,
float  sweepAngle 
)

Draws the specified pie using the specified pen on the surface represented by the current object.

Parameters
penA pen to use when drawing the pie
rectThe rectangle that defines the ellipse
startAngleAngle in degrees measured clockwise from the X axis to the starting point of the pie
sweepAngleAngle in degrees measured clockwise from the startAngle to ending point of the pie

◆ DrawPolygon() [1/2]

void System::Drawing::Graphics::DrawPolygon ( const SharedPtr< Pen > &  pen,
const ArrayPtr< Point > &  points 
)

Draws a polygon using the specified pen.

Parameters
penA pen to use when drawing the polygon
pointsArray of vertices that defines the polygon

◆ DrawPolygon() [2/2]

void System::Drawing::Graphics::DrawPolygon ( const SharedPtr< Pen > &  pen,
const ArrayPtr< PointF > &  points 
)

Draws a polygon using the specified pen.

Parameters
penA pen to use when drawing the polygon
pointsArray of vertices that defines the polygon

◆ DrawRectangle() [1/3]

void System::Drawing::Graphics::DrawRectangle ( const SharedPtr< Pen > &  pen,
float  x,
float  y,
float  width,
float  height 
)

Draws the specified rectangle using the specified pen on the surface represented by the current object.

Parameters
penA pen to use when drawing the rectangle
xThe X coordinate of the upper left corner of the rectangle to draw
yThe Y coordinate of the upper left corner of the rectangle to draw
widthThe width of the rectangle to draw
heightThe height of the rectangle to draw

◆ DrawRectangle() [2/3]

void System::Drawing::Graphics::DrawRectangle ( const SharedPtr< Pen > &  pen,
int  x,
int  y,
int  width,
int  height 
)

Draws the specified rectangle using the specified pen on the surface represented by the current object.

Parameters
penA pen to use when drawing the rectangle
xThe X coordinate of the upper left corner of the rectangle to draw
yThe Y coordinate of the upper left corner of the rectangle to draw
widthThe width of the rectangle to draw
heightThe height of the rectangle to draw

◆ DrawRectangle() [3/3]

void System::Drawing::Graphics::DrawRectangle ( const SharedPtr< Pen > &  pen,
Rectangle  rect 
)

Draws the specified rectangle using the specified pen on the surface represented by the current object.

Parameters
penA pen to use when drawing the rectangle
rectA Rectangle object that specifies the location and size of the rectangle to draw

◆ DrawRectangles() [1/2]

void System::Drawing::Graphics::DrawRectangles ( const SharedPtr< Pen > &  pen,
const ArrayPtr< Rectangle > &  rects 
)

Draws a series of rectangles using the specified pen.

Parameters
penA pen to use when drawing the rectangles
rectsArray of rectangles to draw

◆ DrawRectangles() [2/2]

void System::Drawing::Graphics::DrawRectangles ( const SharedPtr< Pen > &  pen,
const ArrayPtr< RectangleF > &  rects 
)

Draws a series of rectangles using the specified pen.

Parameters
penA pen to use when drawing the rectangles
rectsArray of rectangles to draw

◆ DrawString() [1/3]

void System::Drawing::Graphics::DrawString ( const String str,
const SharedPtr< Font > &  font,
const SharedPtr< Brush > &  brush,
float  x,
float  y,
const System::SharedPtr< System::Drawing::StringFormat > &  stringFormat = nullptr 
)

Draws the specified string at the specified location using the specified font and brush.

Parameters
strThe string to draw
fontA font to use
brushA Brush object to use for drawing
xThe X coordinate of the location of the upper left corner of the drawn string
yThe Y coordinate of the location of the upper left corner of the drawn string
stringFormatSpecified the format of the string

◆ DrawString() [2/3]

void System::Drawing::Graphics::DrawString ( const String str,
const SharedPtr< Font > &  font,
const SharedPtr< Brush > &  brush,
PointF  topLeft,
const System::SharedPtr< System::Drawing::StringFormat > &  stringFormat = nullptr 
)

Draws the specified string at the specified location using the specified font and brush.

Parameters
strThe string to draw
fontA font to use
brushA Brush object to use for drawing
topLeftSpecifies the location of the upper left corner of the drawn string
stringFormatSpecified the format of the string

◆ DrawString() [3/3]

void System::Drawing::Graphics::DrawString ( const String str,
const SharedPtr< Font > &  font,
const SharedPtr< Brush > &  brush,
RectangleF  layoutRectangle,
const System::SharedPtr< System::Drawing::StringFormat > &  stringFormat = nullptr 
)

Draws the specified string in the specified rectangle using the specified font and brush.

Parameters
strThe string to draw
fontA font to use
brushA Brush object to use for drawing
layoutRectangleSpecifies a rectangle to draw the string in
stringFormatSpecified the format of the string

◆ EndContainer()

void System::Drawing::Graphics::EndContainer ( const SharedPtr< Drawing2D::GraphicsContainer > &  container)

Closes the current container and restores the state of this object from the state of saved container.

Parameters
containerThe container to restore the state from

◆ EnumerateMetafile() [1/12]

void System::Drawing::Graphics::EnumerateMetafile ( const SharedPtr< Imaging::Metafile > &  metafile,
const ArrayPtr< Point > &  destPoints,
Graphics::EnumerateMetafileProc  callback 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ EnumerateMetafile() [2/12]

void System::Drawing::Graphics::EnumerateMetafile ( const SharedPtr< Imaging::Metafile > &  metafile,
const ArrayPtr< Point > &  destPoints,
Rectangle  srcRect,
GraphicsUnit  srcUnit,
Graphics::EnumerateMetafileProc  callback 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ EnumerateMetafile() [3/12]

void System::Drawing::Graphics::EnumerateMetafile ( const SharedPtr< Imaging::Metafile > &  metafile,
const ArrayPtr< PointF > &  destPoints,
Graphics::EnumerateMetafileProc  callback 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ EnumerateMetafile() [4/12]

void System::Drawing::Graphics::EnumerateMetafile ( const SharedPtr< Imaging::Metafile > &  metafile,
const ArrayPtr< PointF > &  destPoints,
RectangleF  srcRect,
GraphicsUnit  srcUnit,
Graphics::EnumerateMetafileProc  callback 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ EnumerateMetafile() [5/12]

void System::Drawing::Graphics::EnumerateMetafile ( const SharedPtr< Imaging::Metafile > &  metafile,
Point  destPoint,
Graphics::EnumerateMetafileProc  callback 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ EnumerateMetafile() [6/12]

void System::Drawing::Graphics::EnumerateMetafile ( const SharedPtr< Imaging::Metafile > &  metafile,
Point  destPoint,
Rectangle  srcRect,
GraphicsUnit  srcUnit,
Graphics::EnumerateMetafileProc  callback 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ EnumerateMetafile() [7/12]

void System::Drawing::Graphics::EnumerateMetafile ( const SharedPtr< Imaging::Metafile > &  metafile,
PointF  destPoint,
Graphics::EnumerateMetafileProc  callback 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ EnumerateMetafile() [8/12]

void System::Drawing::Graphics::EnumerateMetafile ( const SharedPtr< Imaging::Metafile > &  metafile,
PointF  destPoint,
RectangleF  srcRect,
GraphicsUnit  srcUnit,
Graphics::EnumerateMetafileProc  callback 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ EnumerateMetafile() [9/12]

void System::Drawing::Graphics::EnumerateMetafile ( const SharedPtr< Imaging::Metafile > &  metafile,
Rectangle  destRect,
Graphics::EnumerateMetafileProc  callback 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ EnumerateMetafile() [10/12]

void System::Drawing::Graphics::EnumerateMetafile ( const SharedPtr< Imaging::Metafile > &  metafile,
Rectangle  destRect,
Rectangle  srcRect,
GraphicsUnit  srcUnit,
Graphics::EnumerateMetafileProc  callback 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ EnumerateMetafile() [11/12]

void System::Drawing::Graphics::EnumerateMetafile ( const SharedPtr< Imaging::Metafile > &  metafile,
RectangleF  destRect,
Graphics::EnumerateMetafileProc  callback 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ EnumerateMetafile() [12/12]

void System::Drawing::Graphics::EnumerateMetafile ( const SharedPtr< Imaging::Metafile > &  metafile,
RectangleF  destRect,
RectangleF  srcRect,
GraphicsUnit  srcUnit,
Graphics::EnumerateMetafileProc  callback 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ ExcludeClip() [1/2]

void System::Drawing::Graphics::ExcludeClip ( const SharedPtr< Region > &  region)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ ExcludeClip() [2/2]

void System::Drawing::Graphics::ExcludeClip ( Rectangle  rect)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ FillClosedCurve() [1/2]

void System::Drawing::Graphics::FillClosedCurve ( const SharedPtr< Brush > &  brush,
const ArrayPtr< Point > &  points,
Drawing2D::FillMode  fillmode = Drawing2D::FillMode::Alternate,
float  tension = 0.5f 
)

Draws a closed spline using the specified brush.

Parameters
brushA brush to use when drawing the spline
pointsArray of points that determines the spline
fillmodeIGNORED
tensionValue that specifies the tension of the spline

◆ FillClosedCurve() [2/2]

void System::Drawing::Graphics::FillClosedCurve ( const SharedPtr< Brush > &  brush,
const ArrayPtr< PointF > &  points,
Drawing2D::FillMode  fillmode = Drawing2D::FillMode::Alternate,
float  tension = 0.5f 
)

Draws a closed spline using the specified brush.

Parameters
brushA brush to use when drawing the spline
pointsArray of points that determines the spline
fillmodeIGNORED
tensionValue that specifies the tension of the spline

◆ FillEllipse() [1/4]

void System::Drawing::Graphics::FillEllipse ( const SharedPtr< Brush > &  brush,
float  x,
float  y,
float  width,
float  height 
)

Fills the interior of the ellipse specified by the bounding rectangle using the specified brush.

Parameters
brushA Brush object to use for filling
xThe X coordinate of the upper left corner of the bounding rectangle
yThe Y coordinate of the upper left corner of the bounding rectangle
widthThe width of the bounding rectangle
heightThe height of the bounding rectangle

◆ FillEllipse() [2/4]

void System::Drawing::Graphics::FillEllipse ( const SharedPtr< Brush > &  brush,
int  x,
int  y,
int  width,
int  height 
)

Fills the interior of the ellipse specified by the bounding rectangle using the specified brush.

Parameters
brushA Brush object to use for filling
xThe X coordinate of the upper left corner of the bounding rectangle
yThe Y coordinate of the upper left corner of the bounding rectangle
widthThe width of the bounding rectangle
heightThe height of the bounding rectangle

◆ FillEllipse() [3/4]

void System::Drawing::Graphics::FillEllipse ( const SharedPtr< Brush > &  brush,
Rectangle  rect 
)

Fills the interior of the ellipse specified by the bounding rectangle using the specified brush.

Parameters
brushA Brush object to use for filling
rectThe bounding rectangle that defines the ellipse to fill

◆ FillEllipse() [4/4]

void System::Drawing::Graphics::FillEllipse ( const SharedPtr< Brush > &  brush,
RectangleF  rect 
)

Fills the interior of the ellipse specified by the bounding rectangle using the specified brush.

Parameters
brushA Brush object to use for filling
rectThe bounding rectangle that defines the ellipse to fill

◆ FillPath()

void System::Drawing::Graphics::FillPath ( const SharedPtr< Brush > &  brush,
const SharedPtr< Drawing2D::GraphicsPath > &  path 
)

Fills the interiors of the specified path using the specified brush.

Parameters
brushA Brush object that specifies the parameters of the fill
pathThe path to fill

◆ FillPie() [1/3]

void System::Drawing::Graphics::FillPie ( const SharedPtr< Brush > &  brush,
float  x,
float  y,
float  width,
float  height,
float  startAngle,
float  sweepAngle 
)

Fills the specified pie using the specified brush on the surface represented by the current object.

Parameters
brushA brush to use when filling the pie
xThe X coordinate of the upper left corner of the rectangle that defines the ellipse
yThe Y coordinate of the upper left corner of the rectangle that defines the ellipse
widthThe width of the rectangle that defines the ellipse
heightThe height of the rectangle that defines the ellipse
startAngleAngle in degrees measured clockwise from the X axis to the starting point of the pie
sweepAngleAngle in degrees measured clockwise from the startAngle to ending point of the pie

◆ FillPie() [2/3]

void System::Drawing::Graphics::FillPie ( const SharedPtr< Brush > &  brush,
int  x,
int  y,
int  width,
int  height,
int  startAngle,
int  sweepAngle 
)

Fills the specified pie using the specified brush on the surface represented by the current object.

Parameters
brushA brush to use when filling the pie
xThe X coordinate of the upper left corner of the rectangle that defines the ellipse
yThe Y coordinate of the upper left corner of the rectangle that defines the ellipse
widthThe width of the rectangle that defines the ellipse
heightThe height of the rectangle that defines the ellipse
startAngleAngle in degrees measured clockwise from the X axis to the starting point of the pie
sweepAngleAngle in degrees measured clockwise from the startAngle to ending point of the pie

◆ FillPie() [3/3]

void System::Drawing::Graphics::FillPie ( const SharedPtr< Brush > &  brush,
Rectangle  rect,
float  startAngle,
float  sweepAngle 
)

Fills the specified pie using the specified brush on the surface represented by the current object.

Parameters
brushA brush to use when filling the pie
rectThe rectangle that defines the ellipse
startAngleAngle in degrees measured clockwise from the X axis to the starting point of the pie
sweepAngleAngle in degrees measured clockwise from the startAngle to ending point of the pie

◆ FillPolygon() [1/2]

void System::Drawing::Graphics::FillPolygon ( const SharedPtr< Brush > &  brush,
const ArrayPtr< Point > &  points,
Drawing2D::FillMode  fillMode = Drawing2D::FillMode::Alternate 
)

Fills the interiors of the specified polygon using the specified brush.

Parameters
brushA Brush object that specifies the parameters of the fill
pointsAn array containing the points that define the polygon
fillModeThe fill mode

◆ FillPolygon() [2/2]

void System::Drawing::Graphics::FillPolygon ( const SharedPtr< Brush > &  brush,
const ArrayPtr< PointF > &  points,
Drawing2D::FillMode  fillMode = Drawing2D::FillMode::Alternate 
)

Fills the interiors of the specified polygon using the specified brush.

Parameters
brushA Brush object that specifies the parameters of the fill
pointsAn array containing the points that define the polygon
fillModeThe fill mode

◆ FillRectangle() [1/4]

void System::Drawing::Graphics::FillRectangle ( const SharedPtr< Brush > &  brush,
float  x,
float  y,
float  width,
float  height 
)

Fills the specified rectangle with the specified brush.

Parameters
brushA Brush object to use for filling
xThe X coordinate of the upper left corner of the rectangle to fill
yThe Y coordinate of the upper left corner of the rectangle to fill
widthThe width of the rectangle to fill
heightThe height of the rectangle to fill

◆ FillRectangle() [2/4]

void System::Drawing::Graphics::FillRectangle ( const SharedPtr< Brush > &  brush,
int  x,
int  y,
int  width,
int  height 
)

Fills the specified rectangle with the specified brush.

Parameters
brushA Brush object to use for filling
xThe X coordinate of the upper left corner of the rectangle to fill
yThe Y coordinate of the upper left corner of the rectangle to fill
widthThe width of the rectangle to fill
heightThe height of the rectangle to fill

◆ FillRectangle() [3/4]

void System::Drawing::Graphics::FillRectangle ( const SharedPtr< Brush > &  brush,
Rectangle  rect 
)

Fills the specified rectangle with the specified brush.

Parameters
brushA Brush object to use for filling
rectA Rectangle object that specifies the location and size of the rectangle to fill

◆ FillRectangle() [4/4]

void System::Drawing::Graphics::FillRectangle ( const SharedPtr< Brush > &  brush,
RectangleF  rect 
)

Fills the specified rectangle with the specified brush.

Parameters
brushA Brush object to use for filling
rectA RectangleF object that specifies the location and size of the rectangle to fill

◆ FillRectangles() [1/2]

void System::Drawing::Graphics::FillRectangles ( const SharedPtr< Brush > &  brush,
const ArrayPtr< Rectangle > &  rects 
)

Fills a series of rectangles using the specified brush.

Parameters
brushA brush to use when filling the rectangles
rectsArray of rectangles to draw

◆ FillRectangles() [2/2]

void System::Drawing::Graphics::FillRectangles ( const SharedPtr< Brush > &  brush,
const ArrayPtr< RectangleF > &  rects 
)

Fills a series of rectangles using the specified brush.

Parameters
brushA brush to use when filling the rectangles
rectsArray of rectangles to draw

◆ FillRegion()

void System::Drawing::Graphics::FillRegion ( const SharedPtr< Brush > &  brush,
const SharedPtr< Region > &  region 
)

Fills the interiors of the specified region using the specified brush.

Parameters
brushA Brush object that specifies the parameters of the fill
regionThe region to fill

◆ Flush()

void System::Drawing::Graphics::Flush ( Drawing2D::FlushIntention  intention = Drawing2D::FlushIntention::Flush)

Triggers the immediate execution of all pending draw operations.

Parameters
intentionIGNORED

◆ FromHwnd()

static SharedPtr< Graphics > System::Drawing::Graphics::FromHwnd ( IntPtr  hwnd)
static

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ FromHwndInternal()

static SharedPtr< Graphics > System::Drawing::Graphics::FromHwndInternal ( IntPtr  hwnd)
static

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ FromImage()

static SharedPtr< Graphics > System::Drawing::Graphics::FromImage ( const SharedPtr< Image > &  image)
static

Creates a new Graphics object from the specified image.

Parameters
imageAn Image object from which a Graphics object should be created
Returns
The created Graphics object

◆ get_Clip()

SharedPtr< Region > System::Drawing::Graphics::get_Clip ( )

Returns a Region object that represents a region that limits the drawing area of the drawing surface represented by the current Graphics object.

◆ get_ClipBounds()

RectangleF System::Drawing::Graphics::get_ClipBounds ( ) const

Returns a rectangle that bounds the clipping area of the surface represented by the current object.

◆ get_CompositingMode()

Drawing2D::CompositingMode System::Drawing::Graphics::get_CompositingMode ( )

Returns a value that indicates how composited images are drawn on the surface represented by the current object.

◆ get_CompositingQuality()

Drawing2D::CompositingQuality System::Drawing::Graphics::get_CompositingQuality ( )

Returns a value that indicates the quality level used when compositing images.

◆ get_DpiX()

float System::Drawing::Graphics::get_DpiX ( )

Returns the horizontal resolution.

◆ get_DpiY()

float System::Drawing::Graphics::get_DpiY ( )

Returns the vertical resolution.

◆ get_InterpolationMode()

Drawing2D::InterpolationMode System::Drawing::Graphics::get_InterpolationMode ( )

Returns a value that indicates the interpolation mode associated with the current object.

◆ get_IsClipEmpty()

bool System::Drawing::Graphics::get_IsClipEmpty ( ) const

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ get_IsVisibleClipEmpty()

bool System::Drawing::Graphics::get_IsVisibleClipEmpty ( ) const

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ get_PageScale()

float System::Drawing::Graphics::get_PageScale ( ) const

Returns the scaling between world units and page units for the current Graphics object.

◆ get_PageUnit()

GraphicsUnit System::Drawing::Graphics::get_PageUnit ( ) const

Returns measurement units used for page coordinates on the surface represented by the current object.

◆ get_PixelOffsetMode()

Drawing2D::PixelOffsetMode System::Drawing::Graphics::get_PixelOffsetMode ( )

Returns a value that indicates how the pixels are offset during rendering on the surface represented by the current object.

◆ get_RenderingOrigin()

Point System::Drawing::Graphics::get_RenderingOrigin ( ) const

Returns a Point object that represents the rendering origin of the current Graphics object for dithering and for hatch brushes.

◆ get_SmoothingMode()

Drawing2D::SmoothingMode System::Drawing::Graphics::get_SmoothingMode ( )

Returns a value that indicates a soothing mode used during rendering on the surface represented by the current object.

◆ get_TextContrast()

int32_t System::Drawing::Graphics::get_TextContrast ( ) const

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ get_TextRenderingHint()

Text::TextRenderingHint System::Drawing::Graphics::get_TextRenderingHint ( )

Returns a value that indicates the quality of text rendering.

◆ get_Transform()

SharedPtr< Drawing2D::Matrix > System::Drawing::Graphics::get_Transform ( )

Returns the geometric world transformation for the current Graphics object.

◆ get_VisibleClipBounds()

RectangleF System::Drawing::Graphics::get_VisibleClipBounds ( ) const

Returns the RectangleF object that represents a bounding rectangle of the visible clipping region of the current Graphics object.

◆ GetHdc()

IntPtr System::Drawing::Graphics::GetHdc ( )

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ GetNearestColor()

Color System::Drawing::Graphics::GetNearestColor ( Color  color)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ GetSkCanvas()

SkCanvas * System::Drawing::Graphics::GetSkCanvas ( ) const

◆ IntersectClip() [1/3]

void System::Drawing::Graphics::IntersectClip ( const System::SharedPtr< Region > &  region)

Updates the clip region of this object to the intersection of the current clip and the specified clip.

Parameters
regionThe region to intersect with

◆ IntersectClip() [2/3]

void System::Drawing::Graphics::IntersectClip ( System::Drawing::Rectangle  rect)

Updates the clip region of this object to the intersection of the current clip and the specified clip.

Parameters
rectThe rectangle to intersect with

◆ IntersectClip() [3/3]

void System::Drawing::Graphics::IntersectClip ( System::Drawing::RectangleF  rect)

Updates the clip region of this object to the intersection of the current clip and the specified clip.

Parameters
rectThe rectangle to intersect with

◆ IsVisible() [1/8]

bool System::Drawing::Graphics::IsVisible ( float  x,
float  y 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ IsVisible() [2/8]

bool System::Drawing::Graphics::IsVisible ( float  x,
float  y,
float  width,
float  height 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ IsVisible() [3/8]

bool System::Drawing::Graphics::IsVisible ( int32_t  x,
int32_t  y 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ IsVisible() [4/8]

bool System::Drawing::Graphics::IsVisible ( int32_t  x,
int32_t  y,
int32_t  width,
int32_t  height 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ IsVisible() [5/8]

bool System::Drawing::Graphics::IsVisible ( Point  point)

Determines whether the specified point is contained within the visible clip region of the current Graphics object.

Parameters
pointThe point to check
Returns
True if point is contained within the visible clip region of the current Graphics object, otherwise - false

◆ IsVisible() [6/8]

bool System::Drawing::Graphics::IsVisible ( PointF  point)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ IsVisible() [7/8]

bool System::Drawing::Graphics::IsVisible ( Rectangle  rect)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ IsVisible() [8/8]

bool System::Drawing::Graphics::IsVisible ( RectangleF  rect)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ MeasureCharacterRanges()

ArrayPtr< SharedPtr< Region > > System::Drawing::Graphics::MeasureCharacterRanges ( const System::String text,
const SharedPtr< Font > &  font,
RectangleF  layoutRect,
const SharedPtr< StringFormat > &  stringFormat 
)

Returns an array of regions each of which bounds character positions in the specified string.

Parameters
textThe string to measure
fontThe font used during the measurement of the string
layoutRectThe layout rectangle used during the measurement of the string
stringFormatThe string format, contaions the character ranges to measure

◆ MeasureString() [1/4]

SizeF System::Drawing::Graphics::MeasureString ( String const &  str,
System::SharedPtr< Font > const &  font,
int  width,
System::SharedPtr< StringFormat > const &  stringFormat = nullptr 
) const

Returns a size of the specified string when drawn in the specified font in the specified format.

Parameters
strThe string whose size to calculate
fontThe font used to draw the string
widthThe maximum width of the string
stringFormatSpecifies the string format
Returns
A SizeF object that represents the size of the string in the measurment units specified by the PageUnit property of the current Grapphics object.

◆ MeasureString() [2/4]

SizeF System::Drawing::Graphics::MeasureString ( String const &  str,
System::SharedPtr< Font > const &  font,
PointF const &  origin = PointF(0, 0),
System::SharedPtr< StringFormat > const &  stringFormat = nullptr 
) const

Returns a size of the specified string when drawn in the specified font in the specified format.

Parameters
strThe string whose size to calculate
fontThe font used to draw the string
originSpecifies the location of the upper left corner of the string
stringFormatSpecifies the string format
Returns
A SizeF object that represents the size of the string in the measurment units specified by the PageUnit property of the current Grapphics object.

◆ MeasureString() [3/4]

SizeF System::Drawing::Graphics::MeasureString ( String const &  str,
System::SharedPtr< Font > const &  font,
SizeF const &  layoutArea,
System::SharedPtr< StringFormat > const &  stringFormat,
int &  charactersFitted,
int &  linesFilled 
) const

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ MeasureString() [4/4]

SizeF System::Drawing::Graphics::MeasureString ( String const &  str,
System::SharedPtr< Font > const &  font,
SizeF const &  layoutArea,
System::SharedPtr< StringFormat > const &  stringFormat = nullptr 
) const

Returns a size of the specified string when drawn in the specified font in the specified format.

Parameters
strThe string whose size to calculate
fontThe font used to draw the string
layoutAreaThe maximum layout area of the string
stringFormatSpecifies the string format
Returns
A SizeF object that represents the size of the string in the measurment units specified by the PageUnit property of the current Grapphics object.

◆ MultiplyTransform()

void System::Drawing::Graphics::MultiplyTransform ( const SharedPtr< Drawing2D::Matrix > &  matrix,
Drawing2D::MatrixOrder  order = Drawing2D::MatrixOrder::Prepend 
)

Multiplies the world transformation matrix of the current Graphics object by the specified matrix.

Parameters
matrixThe matrix to multiply the world transformation matrix of the current Graphics object by
orderThe multiplication order

◆ ReleaseHdc() [1/2]

void System::Drawing::Graphics::ReleaseHdc ( )

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ ReleaseHdc() [2/2]

void System::Drawing::Graphics::ReleaseHdc ( IntPtr  hdc)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ ResetClip()

void System::Drawing::Graphics::ResetClip ( )

Resets the clip region for this graphics to an infinite region.

◆ ResetTransform()

void System::Drawing::Graphics::ResetTransform ( )

Resets the world transformation matrix of the current object so that it becomes an identity matrix.

◆ Restore()

void System::Drawing::Graphics::Restore ( const SharedPtr< Drawing2D::GraphicsState > &  graphicsState)

Restores the state of this object from the saved state.

Parameters
graphicsStateThe state to restore from

◆ RotateTransform()

void System::Drawing::Graphics::RotateTransform ( float  angle,
Drawing2D::MatrixOrder  order = Drawing2D::MatrixOrder::Prepend 
)

Applies the specified rotation to the world transformation matrix of the current Graphics object in the specified order.

Parameters
angleThe rotation angle
orderThe order in which the rotanion operation is applied to the matrix

◆ Save()

SharedPtr< Drawing2D::GraphicsState > System::Drawing::Graphics::Save ( )

Saves the current state of this object and returns the saved state.

◆ ScaleTransform()

void System::Drawing::Graphics::ScaleTransform ( float  sx,
float  sy,
Drawing2D::MatrixOrder  order = Drawing2D::MatrixOrder::Prepend 
)

Applies the specified scale vector to the world transformation matrix of the current object.

Parameters
sxThe value by which to scale the matrix in x-axis direction
syThe value by which to scale the matrix in y-axis direction
orderThe order in which the scale vector is applied to the matrix

◆ set_Clip()

void System::Drawing::Graphics::set_Clip ( const SharedPtr< Region > &  region)

Sets a region that limits the drawing area of the drawing surface represented by the current.

◆ set_CompositingMode()

void System::Drawing::Graphics::set_CompositingMode ( Drawing2D::CompositingMode  mode)

Sets a value that specifies how composited images are drawn on the surface represented by the current object.

Parameters
modeThe value to set

◆ set_CompositingQuality()

void System::Drawing::Graphics::set_CompositingQuality ( Drawing2D::CompositingQuality  quality)

Sets a value that specifies the quality level to use when compositing images.

Parameters
qualityThe value to set

◆ set_InterpolationMode()

void System::Drawing::Graphics::set_InterpolationMode ( Drawing2D::InterpolationMode  mode)

Sets a value that indicates the interpolation mode associated with the current object.

Parameters
modeThe value to set

◆ set_PageScale()

void System::Drawing::Graphics::set_PageScale ( float  scale)

Sets the scaling between world units and page units for the current Graphics object.

Parameters
scaleThe value to set

◆ set_PageUnit()

void System::Drawing::Graphics::set_PageUnit ( GraphicsUnit  value)

Sets measurement units used for page coordinates on the surface represented by the current object.

Parameters
valueThe value to set

◆ set_PixelOffsetMode()

void System::Drawing::Graphics::set_PixelOffsetMode ( Drawing2D::PixelOffsetMode  mode)

Sets a value that specifies how the pixels should be offset during rendering on the surface represented by the current object.

Parameters
modeThe value to set

◆ set_RenderingOrigin()

void System::Drawing::Graphics::set_RenderingOrigin ( Point  point)

Sets a Point object that specifies the rendering origin of the current Graphics object for dithering and for hatch brushes.

Parameters
pointThe value to set

◆ set_SmoothingMode()

void System::Drawing::Graphics::set_SmoothingMode ( Drawing2D::SmoothingMode  mode)

Sets a value that specifies a soothing mode used during rendering on the surface represented by the current object.

Parameters
modeThe value to set

◆ set_TextContrast()

void System::Drawing::Graphics::set_TextContrast ( int32_t  value)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ set_TextRenderingHint()

void System::Drawing::Graphics::set_TextRenderingHint ( Text::TextRenderingHint  hint)

Sets a value that specifies the quality of text rendering.

Parameters
hintThe value to set

◆ set_Transform()

void System::Drawing::Graphics::set_Transform ( const SharedPtr< Drawing2D::Matrix > &  matrix)

Sets the geometric world transformation for the current Graphics object.

Parameters
matrixThe value to set

◆ SetClip() [1/5]

void System::Drawing::Graphics::SetClip ( const SharedPtr< Drawing2D::GraphicsPath > &  path,
Drawing2D::CombineMode  combineMode = Drawing2D::CombineMode::Replace 
)

Sets the clipping region of drawing surface represented by the current Graphics object to the result of the specified operation that combines the current clip region and the region specified by a graphics path.

Parameters
pathSpecifies a region to combine
combineModeSpecifies the combining operation

◆ SetClip() [2/5]

void System::Drawing::Graphics::SetClip ( const SharedPtr< Graphics > &  graphics,
Drawing2D::CombineMode  combineMode = Drawing2D::CombineMode::Replace 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ SetClip() [3/5]

void System::Drawing::Graphics::SetClip ( const SharedPtr< Region > &  region,
Drawing2D::CombineMode  combineMode = Drawing2D::CombineMode::Replace 
)

Sets the clipping region of drawing surface represented by the current Graphics object to the result of the specified operation that combines the current clip region and the specified region.

Parameters
regionSpecifies a region to combine
combineModeSpecifies the combining operation

◆ SetClip() [4/5]

void System::Drawing::Graphics::SetClip ( Rectangle  rect,
Drawing2D::CombineMode  combineMode = Drawing2D::CombineMode::Replace 
)

Sets the clipping region of drawing surface represented by the current Graphics object to the result of the specified operation that combines the current clip region and the specified region.

Parameters
rectSpecifies a region to combine
combineModeSpecifies the combining operation

◆ SetClip() [5/5]

void System::Drawing::Graphics::SetClip ( RectangleF  rect,
Drawing2D::CombineMode  combineMode = Drawing2D::CombineMode::Replace 
)

Sets the clipping region of drawing surface represented by the current Graphics object to the result of the specified operation that combines the current clip region and the specified region.

Parameters
rectSpecifies a region to combine
combineModeSpecifies the combining operation

◆ TransformPoints() [1/2]

void System::Drawing::Graphics::TransformPoints ( Drawing2D::CoordinateSpace  destSpace,
Drawing2D::CoordinateSpace  srcSpace,
const ArrayPtr< System::Drawing::Point > &  pts 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ TransformPoints() [2/2]

void System::Drawing::Graphics::TransformPoints ( Drawing2D::CoordinateSpace  destSpace,
Drawing2D::CoordinateSpace  srcSpace,
const ArrayPtr< System::Drawing::PointF > &  pts 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ TranslateClip() [1/2]

void System::Drawing::Graphics::TranslateClip ( float  dx,
float  dy 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ TranslateClip() [2/2]

void System::Drawing::Graphics::TranslateClip ( int  dx,
int  dy 
)

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ TranslateTransform()

void System::Drawing::Graphics::TranslateTransform ( float  dx,
float  dy,
Drawing2D::MatrixOrder  order = Drawing2D::MatrixOrder::Prepend 
)

Applies the specified translation vector to the world transformation matrix of the current Graphics object.

Parameters
dxThe X value by which the matrix is translated
dyThe Y value by which the matrix is translated
orderThe order in which the translation vector is applied to the matrix