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

ASPOSECPP_SHARED_API Drawing2D::CompositingMode get_CompositingMode ()
 Returns a value that indicates how composited images are drawn on the surface represented by the current object. More...
 
ASPOSECPP_SHARED_API void set_CompositingMode (Drawing2D::CompositingMode mode)
 
ASPOSECPP_SHARED_API Drawing2D::CompositingQuality get_CompositingQuality ()
 Returns a value that indicates the quality level used when compositing images. More...
 
ASPOSECPP_SHARED_API void set_CompositingQuality (Drawing2D::CompositingQuality quality)
 
ASPOSECPP_SHARED_API Drawing2D::InterpolationMode get_InterpolationMode ()
 Returns a value that indicates the interpolation mode associated with the current object. More...
 
ASPOSECPP_SHARED_API void set_InterpolationMode (Drawing2D::InterpolationMode mode)
 
ASPOSECPP_SHARED_API 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...
 
ASPOSECPP_SHARED_API void set_PixelOffsetMode (Drawing2D::PixelOffsetMode mode)
 
ASPOSECPP_SHARED_API Drawing2D::SmoothingMode get_SmoothingMode ()
 Returns a value that indicates a soothing mode used during rendering on the surface represented by the current object. More...
 
ASPOSECPP_SHARED_API void set_SmoothingMode (Drawing2D::SmoothingMode mode)
 
ASPOSECPP_SHARED_API Text::TextRenderingHint get_TextRenderingHint ()
 Returns a value that indicates the quality of text rendering. More...
 
ASPOSECPP_SHARED_API void set_TextRenderingHint (Text::TextRenderingHint hint)
 
ASPOSECPP_SHARED_API GraphicsUnit get_PageUnit () const
 
ASPOSECPP_SHARED_API void set_PageUnit (GraphicsUnit value)
 
ASPOSECPP_SHARED_API RectangleF get_ClipBounds () const
 
ASPOSECPP_SHARED_API void Clear (Color color)
 
ASPOSECPP_SHARED_API void DrawArc (const SharedPtr< Pen > &pen, int32_t x, int32_t y, int32_t width, int32_t height, int32_t startAngle, int32_t sweepAngle)
 
ASPOSECPP_SHARED_API void DrawArc (const SharedPtr< Pen > &pen, float x, float y, float width, float height, float startAngle, float sweepAngle)
 
ASPOSECPP_SHARED_API void DrawArc (const SharedPtr< Pen > &pen, Rectangle rect, float startAngle, float sweepAngle)
 
ASPOSECPP_SHARED_API void DrawArc (const SharedPtr< Pen > &pen, RectangleF rect, float startAngle, float sweepAngle)
 
ASPOSECPP_SHARED_API void DrawPie (const SharedPtr< Pen > &pen, int32_t x, int32_t y, int32_t width, int32_t height, int32_t startAngle, int32_t sweepAngle)
 
ASPOSECPP_SHARED_API void DrawPie (const SharedPtr< Pen > &pen, float x, float y, float width, float height, float startAngle, float sweepAngle)
 
ASPOSECPP_SHARED_API void DrawPie (const SharedPtr< Pen > &pen, Rectangle rect, float startAngle, float sweepAngle)
 
ASPOSECPP_SHARED_API void DrawPie (const SharedPtr< Pen > &pen, RectangleF rect, float startAngle, float sweepAngle)
 
ASPOSECPP_SHARED_API void FillPie (const SharedPtr< Brush > &brush, int x, int y, int width, int height, int startAngle, int sweepAngle)
 
ASPOSECPP_SHARED_API void FillPie (const SharedPtr< Brush > &brush, float x, float y, float width, float height, float startAngle, float sweepAngle)
 
ASPOSECPP_SHARED_API void FillPie (const SharedPtr< Brush > &brush, Rectangle rect, float startAngle, float sweepAngle)
 
ASPOSECPP_SHARED_API void DrawRectangle (const SharedPtr< Pen > &pen, int x, int y, int width, int height)
 
ASPOSECPP_SHARED_API void DrawRectangle (const SharedPtr< Pen > &pen, float x, float y, float width, float height)
 
ASPOSECPP_SHARED_API void DrawRectangle (const SharedPtr< Pen > &pen, Rectangle rect)
 
ASPOSECPP_SHARED_API void DrawRectangles (const SharedPtr< Pen > &pen, const ArrayPtr< Rectangle > &rects)
 
ASPOSECPP_SHARED_API void DrawRectangles (const SharedPtr< Pen > &pen, const ArrayPtr< RectangleF > &rects)
 
ASPOSECPP_SHARED_API void DrawPolygon (const SharedPtr< Pen > &pen, const ArrayPtr< Point > &points)
 
ASPOSECPP_SHARED_API void DrawPolygon (const SharedPtr< Pen > &pen, const ArrayPtr< PointF > &points)
 
ASPOSECPP_SHARED_API void FillRectangle (const SharedPtr< Brush > &brush, float x, float y, float width, float height)
 
ASPOSECPP_SHARED_API void FillRectangle (const SharedPtr< Brush > &brush, int x, int y, int width, int height)
 
ASPOSECPP_SHARED_API void FillRectangle (const SharedPtr< Brush > &brush, Rectangle rect)
 
ASPOSECPP_SHARED_API void FillRectangle (const SharedPtr< Brush > &brush, RectangleF rect)
 
ASPOSECPP_SHARED_API void FillRectangles (const SharedPtr< Brush > &brush, const ArrayPtr< Rectangle > &rects)
 
ASPOSECPP_SHARED_API void FillRectangles (const SharedPtr< Brush > &brush, const ArrayPtr< RectangleF > &rects)
 
ASPOSECPP_SHARED_API void DrawEllipse (const SharedPtr< Pen > &pen, Rectangle rect)
 
ASPOSECPP_SHARED_API void DrawEllipse (const SharedPtr< Pen > &pen, RectangleF rect)
 
ASPOSECPP_SHARED_API void DrawEllipse (const SharedPtr< Pen > &pen, int x, int y, int width, int height)
 
ASPOSECPP_SHARED_API void DrawEllipse (const SharedPtr< Pen > &pen, float x, float y, float width, float height)
 
ASPOSECPP_SHARED_API void DrawString (const String &str, const SharedPtr< Font > &font, const SharedPtr< Brush > &brush, PointF topLeft, const System::SharedPtr< System::Drawing::StringFormat > &stringFormat=nullptr)
 
ASPOSECPP_SHARED_API void DrawString (const String &str, const SharedPtr< Font > &font, const SharedPtr< Brush > &brush, RectangleF layoutRectangle, const System::SharedPtr< System::Drawing::StringFormat > &stringFormat=nullptr)
 
ASPOSECPP_SHARED_API 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)
 
ASPOSECPP_SHARED_API void FillEllipse (const SharedPtr< Brush > &brush, Rectangle rect)
 
ASPOSECPP_SHARED_API void FillEllipse (const SharedPtr< Brush > &brush, RectangleF rect)
 
ASPOSECPP_SHARED_API void FillEllipse (const SharedPtr< Brush > &brush, int x, int y, int width, int height)
 
ASPOSECPP_SHARED_API void FillEllipse (const SharedPtr< Brush > &brush, float x, float y, float width, float height)
 
ASPOSECPP_SHARED_API void FillPath (const SharedPtr< Brush > &brush, const SharedPtr< Drawing2D::GraphicsPath > &path)
 
ASPOSECPP_SHARED_API void FillRegion (const SharedPtr< Brush > &brush, const SharedPtr< Region > &region)
 
ASPOSECPP_SHARED_API void FillPolygon (const SharedPtr< Brush > &brush, const ArrayPtr< Point > &points, Drawing2D::FillMode fillMode=Drawing2D::FillMode::Alternate)
 
ASPOSECPP_SHARED_API void FillPolygon (const SharedPtr< Brush > &brush, const ArrayPtr< PointF > &points, Drawing2D::FillMode fillMode=Drawing2D::FillMode::Alternate)
 
ASPOSECPP_SHARED_API void DrawImage (const SharedPtr< Image > &image, const System::ArrayPtr< Point > &destPoints)
 
ASPOSECPP_SHARED_API void DrawImage (const SharedPtr< Image > &image, const System::ArrayPtr< PointF > &destPoints, const RectangleF &srcRect, GraphicsUnit srcUnit, const Imaging::ImageAttributesPtr &imgAttributes)
 
ASPOSECPP_SHARED_API void DrawImage (const SharedPtr< Image > &image, const System::Details::ArrayView< PointF > &destPoints, const RectangleF &srcRect, GraphicsUnit srcUnit, const Imaging::ImageAttributesPtr &imgAttributes)
 
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)
 
ASPOSECPP_SHARED_API void DrawImage (const SharedPtr< Image > &image, int x, int y)
 
ASPOSECPP_SHARED_API void DrawImage (const SharedPtr< Image > &image, float x, float y)
 
ASPOSECPP_SHARED_API void DrawImage (const SharedPtr< Image > &image, Point pt)
 
ASPOSECPP_SHARED_API void DrawImage (const SharedPtr< Image > &image, PointF pt)
 
ASPOSECPP_SHARED_API void DrawImage (const SharedPtr< Image > &image, int x, int y, int width, int height)
 
ASPOSECPP_SHARED_API void DrawImage (const SharedPtr< Image > &image, float x, float y, float width, float height)
 
ASPOSECPP_SHARED_API void DrawImage (const SharedPtr< Image > &image, RectangleF destRect, RectangleF srcRect, GraphicsUnit srcUnit)
 
ASPOSECPP_SHARED_API void DrawImage (const SharedPtr< Image > &image, Rectangle destRect, Rectangle srcRect, GraphicsUnit srcUnit)
 
ASPOSECPP_SHARED_API void DrawImage (const SharedPtr< Image > &image, int x, int y, Rectangle srcRect, GraphicsUnit srcUnit)
 
ASPOSECPP_SHARED_API void DrawImage (const SharedPtr< Image > &image, const Rectangle &rect)
 
ASPOSECPP_SHARED_API void DrawImage (const SharedPtr< Image > &image, const RectangleF &rect)
 
ASPOSECPP_SHARED_API void DrawImage (const SharedPtr< Image > &image, Rectangle destRect, int srcX, int srcY, int srcWidth, int srcHeight, GraphicsUnit srcUnit, const Imaging::ImageAttributesPtr &imgAttributes)
 
ASPOSECPP_SHARED_API void DrawImage (const SharedPtr< Image > &image, Rectangle destRect, float srcX, float srcY, float srcWidth, float srcHeight, GraphicsUnit srcUnit, const Imaging::ImageAttributesPtr &imgAttributes)
 
ASPOSECPP_SHARED_API void DrawImage (const SharedPtr< Image > &image, Rectangle destRect, int srcX, int srcY, int srcWidth, int srcHeight, GraphicsUnit srcUnit)
 
ASPOSECPP_SHARED_API void DrawImage (const SharedPtr< Image > &image, Rectangle destRect, float srcX, float srcY, float srcWidth, float srcHeight, GraphicsUnit srcUnit)
 
ASPOSECPP_SHARED_API 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)
 
ASPOSECPP_SHARED_API 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)
 
ASPOSECPP_SHARED_API 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)
 
ASPOSECPP_SHARED_API 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)
 
ASPOSECPP_SHARED_API void DrawImage (const SharedPtr< Image > &image, const ArrayPtr< PointF > &destPoints, RectangleF srcRect, GraphicsUnit srcUnit)
 
ASPOSECPP_SHARED_API void DrawImage (const SharedPtr< Image > &image, const ArrayPtr< PointF > &destPoints)
 
ASPOSECPP_SHARED_API void DrawImage (const SharedPtr< Image > &image, const ArrayPtr< Point > &destPoints, Rectangle srcRect, GraphicsUnit srcUnit)
 
ASPOSECPP_SHARED_API void DrawImage (const SharedPtr< Image > &image, const ArrayPtr< Point > &destPoints, Rectangle srcRect, GraphicsUnit srcUnit, const SharedPtr< Imaging::ImageAttributes > &imageAttr)
 
ASPOSECPP_SHARED_API void DrawImage (const SharedPtr< Image > &image, float x, float y, RectangleF srcRect, GraphicsUnit srcUnit)
 
ASPOSECPP_SHARED_API void DrawImageUnscaled (const SharedPtr< Image > &image, int x, int y)
 
ASPOSECPP_SHARED_API void DrawImageUnscaled (const SharedPtr< Image > &image, int x, int y, int width, int height)
 
ASPOSECPP_SHARED_API void DrawImageUnscaled (const SharedPtr< Image > &image, const Rectangle &rect)
 
ASPOSECPP_SHARED_API void DrawImageUnscaled (const SharedPtr< Image > &image, const Point &point)
 
ASPOSECPP_SHARED_API void DrawLine (const SharedPtr< Pen > &pen, Point pt1, Point pt2)
 
ASPOSECPP_SHARED_API void DrawLine (const SharedPtr< Pen > &pen, PointF pt1, PointF pt2)
 
ASPOSECPP_SHARED_API void DrawLine (const SharedPtr< Pen > &pen, int x1, int y1, int x2, int y2)
 
ASPOSECPP_SHARED_API void DrawLine (const SharedPtr< Pen > &pen, float x1, float y1, float x2, float y2)
 
ASPOSECPP_SHARED_API void DrawIcon (const SharedPtr< Icon > &icon, Rectangle targetRect)
 
ASPOSECPP_SHARED_API void DrawIcon (const SharedPtr< Icon > &icon, int32_t x, int32_t y)
 
ASPOSECPP_SHARED_API void DrawIconUnstretched (const SharedPtr< Icon > &icon, Rectangle targetRect)
 
ASPOSECPP_SHARED_API void DrawImageUnscaledAndClipped (const SharedPtr< Image > &image, Rectangle rectangle)
 
ASPOSECPP_SHARED_API ArrayPtr< SharedPtr< Region > > MeasureCharacterRanges (const System::String &text, const SharedPtr< Font > &font, RectangleF layoutRect, const SharedPtr< StringFormat > &stringFormat)
 
ASPOSECPP_SHARED_API SizeF MeasureString (String const &str, System::SharedPtr< Font > const &font, PointF const &origin=PointF(0, 0), System::SharedPtr< StringFormat > const &stringFormat=nullptr) const
 
ASPOSECPP_SHARED_API SizeF MeasureString (String const &str, System::SharedPtr< Font > const &font, int width, System::SharedPtr< StringFormat > const &stringFormat=nullptr) const
 
ASPOSECPP_SHARED_API SizeF MeasureString (String const &str, System::SharedPtr< Font > const &font, SizeF const &layoutArea, System::SharedPtr< StringFormat > const &stringFormat, int &charactersFitted, int &linesFilled) const
 
ASPOSECPP_SHARED_API SizeF MeasureString (String const &str, System::SharedPtr< Font > const &font, SizeF const &layoutArea, System::SharedPtr< StringFormat > const &stringFormat=nullptr) const
 
ASPOSECPP_SHARED_API IntPtr GetHdc ()
 
ASPOSECPP_SHARED_API void ReleaseHdc ()
 
ASPOSECPP_SHARED_API void ReleaseHdc (IntPtr hdc)
 
ASPOSECPP_SHARED_API float get_PageScale () const
 Returns the scaling between world units and page units for the current Graphics object. More...
 
ASPOSECPP_SHARED_API void set_PageScale (float scale)
 
ASPOSECPP_SHARED_API 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...
 
ASPOSECPP_SHARED_API void set_RenderingOrigin (Point point)
 
ASPOSECPP_SHARED_API SharedPtr< Drawing2D::Matrixget_Transform ()
 Returns the geometric world transformation for the current Graphics object. More...
 
ASPOSECPP_SHARED_API void set_Transform (const SharedPtr< Drawing2D::Matrix > &matrix)
 
ASPOSECPP_SHARED_API float get_DpiX ()
 Returns the horizontal resolution. More...
 
ASPOSECPP_SHARED_API float get_DpiY ()
 Returns the vertical resolution. More...
 
ASPOSECPP_SHARED_API SharedPtr< Regionget_Clip ()
 
ASPOSECPP_SHARED_API void set_Clip (const SharedPtr< Region > &region)
 Sets a region that limits the drawing area of the drawing surface represented by the current. More...
 
ASPOSECPP_SHARED_API void SetClip (const SharedPtr< Region > &region, Drawing2D::CombineMode combineMode=Drawing2D::CombineMode::Replace)
 
ASPOSECPP_SHARED_API void SetClip (Rectangle rect, Drawing2D::CombineMode combineMode=Drawing2D::CombineMode::Replace)
 
ASPOSECPP_SHARED_API void SetClip (RectangleF rect, Drawing2D::CombineMode combineMode=Drawing2D::CombineMode::Replace)
 
ASPOSECPP_SHARED_API void SetClip (const SharedPtr< Graphics > &graphics, Drawing2D::CombineMode combineMode=Drawing2D::CombineMode::Replace)
 
ASPOSECPP_SHARED_API void SetClip (const SharedPtr< Drawing2D::GraphicsPath > &path, Drawing2D::CombineMode combineMode=Drawing2D::CombineMode::Replace)
 
ASPOSECPP_SHARED_API void ExcludeClip (Rectangle rect)
 
ASPOSECPP_SHARED_API void ExcludeClip (const SharedPtr< Region > &region)
 
ASPOSECPP_SHARED_API void ResetClip ()
 Resets the clip region for this graphics to an infinite region. More...
 
ASPOSECPP_SHARED_API void DrawPath (const SharedPtr< Pen > &pen, const SharedPtr< Drawing2D::GraphicsPath > &path)
 
ASPOSECPP_SHARED_API void DrawLines (const SharedPtr< Pen > &pen, const System::ArrayPtr< System::Drawing::Point > &points)
 
ASPOSECPP_SHARED_API void DrawLines (const SharedPtr< Pen > &pen, const System::ArrayPtr< System::Drawing::PointF > &points)
 
ASPOSECPP_SHARED_API void DrawBezier (const SharedPtr< Pen > &pen, const Point &pt1, const Point &pt2, const Point &pt3, const Point &pt4)
 
ASPOSECPP_SHARED_API void DrawBezier (const SharedPtr< Pen > &pen, const PointF &pt1, const PointF &pt2, const PointF &pt3, const PointF &pt4)
 
ASPOSECPP_SHARED_API void DrawBezier (const SharedPtr< Pen > &pen, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)
 
ASPOSECPP_SHARED_API void DrawBeziers (const SharedPtr< Pen > &pen, const ArrayPtr< Point > &points)
 
ASPOSECPP_SHARED_API void DrawBeziers (const SharedPtr< Pen > &pen, const ArrayPtr< PointF > &points)
 
ASPOSECPP_SHARED_API void DrawClosedCurve (const SharedPtr< Pen > &pen, const ArrayPtr< Point > &points, float tension=0.5f, Drawing2D::FillMode fillmode=Drawing2D::FillMode::Alternate)
 
ASPOSECPP_SHARED_API void DrawClosedCurve (const SharedPtr< Pen > &pen, const ArrayPtr< PointF > &points, float tension=0.5f, Drawing2D::FillMode fillmode=Drawing2D::FillMode::Alternate)
 
ASPOSECPP_SHARED_API void DrawCurve (const SharedPtr< Pen > &pen, const ArrayPtr< Point > &points, float tension=0.5f)
 
ASPOSECPP_SHARED_API void DrawCurve (const SharedPtr< Pen > &pen, const ArrayPtr< PointF > &points, float tension=0.5f)
 
ASPOSECPP_SHARED_API void DrawCurve (const SharedPtr< Pen > &pen, const ArrayPtr< Point > &points, int32_t offset, int32_t numberOfSegments, float tension=0.5f)
 
ASPOSECPP_SHARED_API void DrawCurve (const SharedPtr< Pen > &pen, const ArrayPtr< PointF > &points, int32_t offset, int32_t numberOfSegments, float tension=0.5f)
 
ASPOSECPP_SHARED_API void FillClosedCurve (const SharedPtr< Brush > &brush, const ArrayPtr< PointF > &points, Drawing2D::FillMode fillmode=Drawing2D::FillMode::Alternate, float tension=0.5f)
 
ASPOSECPP_SHARED_API void FillClosedCurve (const SharedPtr< Brush > &brush, const ArrayPtr< Point > &points, Drawing2D::FillMode fillmode=Drawing2D::FillMode::Alternate, float tension=0.5f)
 
ASPOSECPP_SHARED_API void ResetTransform ()
 Resets the world transformation matrix of the current object so that it becomes an identity matrix. More...
 
ASPOSECPP_SHARED_API void ScaleTransform (float sx, float sy, Drawing2D::MatrixOrder order=Drawing2D::MatrixOrder::Prepend)
 
ASPOSECPP_SHARED_API void RotateTransform (float angle, Drawing2D::MatrixOrder order=Drawing2D::MatrixOrder::Prepend)
 
ASPOSECPP_SHARED_API void TranslateTransform (float dx, float dy, Drawing2D::MatrixOrder order=Drawing2D::MatrixOrder::Prepend)
 
ASPOSECPP_SHARED_API void MultiplyTransform (const SharedPtr< Drawing2D::Matrix > &matrix, Drawing2D::MatrixOrder order=Drawing2D::MatrixOrder::Prepend)
 
ASPOSECPP_SHARED_API void TranslateClip (int dx, int dy)
 
ASPOSECPP_SHARED_API void TranslateClip (float dx, float dy)
 
ASPOSECPP_SHARED_API void TransformPoints (Drawing2D::CoordinateSpace destSpace, Drawing2D::CoordinateSpace srcSpace, const ArrayPtr< System::Drawing::Point > &pts)
 
ASPOSECPP_SHARED_API void TransformPoints (Drawing2D::CoordinateSpace destSpace, Drawing2D::CoordinateSpace srcSpace, const ArrayPtr< System::Drawing::PointF > &pts)
 
ASPOSECPP_SHARED_API SharedPtr< Drawing2D::GraphicsStateSave ()
 Saves the current state of this object and returns the saved state. More...
 
ASPOSECPP_SHARED_API void Restore (const SharedPtr< Drawing2D::GraphicsState > &graphicsState)
 
ASPOSECPP_SHARED_API void Flush (Drawing2D::FlushIntention intention=Drawing2D::FlushIntention::Flush)
 
ASPOSECPP_SHARED_API void IntersectClip (const System::SharedPtr< Region > &region)
 
ASPOSECPP_SHARED_API void IntersectClip (System::Drawing::RectangleF rect)
 
ASPOSECPP_SHARED_API void IntersectClip (System::Drawing::Rectangle rect)
 
ASPOSECPP_SHARED_API bool IsVisible (Point point)
 
ASPOSECPP_SHARED_API bool IsVisible (PointF point)
 
ASPOSECPP_SHARED_API bool IsVisible (Rectangle rect)
 
ASPOSECPP_SHARED_API bool IsVisible (RectangleF rect)
 
ASPOSECPP_SHARED_API bool IsVisible (int32_t x, int32_t y)
 
ASPOSECPP_SHARED_API bool IsVisible (float x, float y)
 
ASPOSECPP_SHARED_API bool IsVisible (float x, float y, float width, float height)
 
ASPOSECPP_SHARED_API bool IsVisible (int32_t x, int32_t y, int32_t width, int32_t height)
 
ASPOSECPP_SHARED_API 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...
 
ASPOSECPP_SHARED_API SharedPtr< Drawing2D::GraphicsContainerBeginContainer (Rectangle dstrect, Rectangle srcrect, GraphicsUnit unit)
 
ASPOSECPP_SHARED_API SharedPtr< Drawing2D::GraphicsContainerBeginContainer (RectangleF dstrect, RectangleF srcrect, GraphicsUnit unit)
 
ASPOSECPP_SHARED_API void EndContainer (const SharedPtr< Drawing2D::GraphicsContainer > &container)
 
ASPOSECPP_SHARED_API void EnumerateMetafile (const SharedPtr< Imaging::Metafile > &metafile, const ArrayPtr< PointF > &destPoints, Graphics::EnumerateMetafileProc callback)
 
ASPOSECPP_SHARED_API void EnumerateMetafile (const SharedPtr< Imaging::Metafile > &metafile, const ArrayPtr< Point > &destPoints, Graphics::EnumerateMetafileProc callback)
 
ASPOSECPP_SHARED_API void EnumerateMetafile (const SharedPtr< Imaging::Metafile > &metafile, Point destPoint, Graphics::EnumerateMetafileProc callback)
 
ASPOSECPP_SHARED_API void EnumerateMetafile (const SharedPtr< Imaging::Metafile > &metafile, PointF destPoint, Graphics::EnumerateMetafileProc callback)
 
ASPOSECPP_SHARED_API void EnumerateMetafile (const SharedPtr< Imaging::Metafile > &metafile, Rectangle destRect, Graphics::EnumerateMetafileProc callback)
 
ASPOSECPP_SHARED_API void EnumerateMetafile (const SharedPtr< Imaging::Metafile > &metafile, RectangleF destRect, Graphics::EnumerateMetafileProc callback)
 
ASPOSECPP_SHARED_API void EnumerateMetafile (const SharedPtr< Imaging::Metafile > &metafile, Point destPoint, Rectangle srcRect, GraphicsUnit srcUnit, Graphics::EnumerateMetafileProc callback)
 
ASPOSECPP_SHARED_API void EnumerateMetafile (const SharedPtr< Imaging::Metafile > &metafile, PointF destPoint, RectangleF srcRect, GraphicsUnit srcUnit, Graphics::EnumerateMetafileProc callback)
 
ASPOSECPP_SHARED_API void EnumerateMetafile (const SharedPtr< Imaging::Metafile > &metafile, const ArrayPtr< Point > &destPoints, Rectangle srcRect, GraphicsUnit srcUnit, Graphics::EnumerateMetafileProc callback)
 
ASPOSECPP_SHARED_API void EnumerateMetafile (const SharedPtr< Imaging::Metafile > &metafile, const ArrayPtr< PointF > &destPoints, RectangleF srcRect, GraphicsUnit srcUnit, Graphics::EnumerateMetafileProc callback)
 
ASPOSECPP_SHARED_API void EnumerateMetafile (const SharedPtr< Imaging::Metafile > &metafile, Rectangle destRect, Rectangle srcRect, GraphicsUnit srcUnit, Graphics::EnumerateMetafileProc callback)
 
ASPOSECPP_SHARED_API void EnumerateMetafile (const SharedPtr< Imaging::Metafile > &metafile, RectangleF destRect, RectangleF srcRect, GraphicsUnit srcUnit, Graphics::EnumerateMetafileProc callback)
 
ASPOSECPP_SHARED_API void AddMetafileComment (const System::ArrayPtr< uint8_t > &data)
 
ASPOSECPP_SHARED_API void CopyFromScreen (Point upperLeftSource, Point upperLeftDestination, Size blockRegionSize, CopyPixelOperation copyPixelOperation=CopyPixelOperation::SourceCopy)
 
ASPOSECPP_SHARED_API void CopyFromScreen (int32_t sourceX, int32_t sourceY, int32_t destinationX, int32_t destinationY, Size blockRegionSize, CopyPixelOperation copyPixelOperation=CopyPixelOperation::SourceCopy)
 
ASPOSECPP_SHARED_API int32_t get_TextContrast () const
 
ASPOSECPP_SHARED_API void set_TextContrast (int32_t value)
 
ASPOSECPP_SHARED_API bool get_IsClipEmpty () const
 
ASPOSECPP_SHARED_API bool get_IsVisibleClipEmpty () const
 
ASPOSECPP_SHARED_API RectangleF get_VisibleClipBounds () const
 
ASPOSECPP_SHARED_API Color GetNearestColor (Color color)
 
void Dispose ()
 Releases all operating system resources acquired by the current object. More...
 
ASPOSECPP_SHARED_API ~Graphics ()
 
ASPOSECPP_SHARED_API SkCanvas * GetSkCanvas () const
 
- Public Member Functions inherited from System::Object
ASPOSECPP_SHARED_API Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ASPOSECPP_SHARED_API ~Object ()
 Destroys object. Frees all internal data structures. More...
 
ASPOSECPP_SHARED_API 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...
 
ASPOSECPP_SHARED_API void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
ASPOSECPP_SHARED_API void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual ASPOSECPP_SHARED_API int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual ASPOSECPP_SHARED_API String ToString () const
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 
template<>
bool Equals (double const &objA, double const &objB)
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 

Static Public Member Functions

static ASPOSECPP_SHARED_API SharedPtr< GraphicsFromImage (const SharedPtr< Image > &image)
 
static ASPOSECPP_SHARED_API SharedPtr< GraphicsFromHwnd (IntPtr hwnd)
 
static ASPOSECPP_SHARED_API SharedPtr< GraphicsFromHwndInternal (IntPtr hwnd)
 
- 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...
 

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()

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

Member Function Documentation

◆ AddMetafileComment()

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ BeginContainer() [1/3]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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()

ASPOSECPP_SHARED_API 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]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ CopyFromScreen() [2/2]

ASPOSECPP_SHARED_API 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

◆ Dispose()

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

Releases all operating system resources acquired by the current object.

◆ DrawArc() [1/4]

ASPOSECPP_SHARED_API 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() [2/4]

ASPOSECPP_SHARED_API 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() [3/4]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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() [3/4]

ASPOSECPP_SHARED_API 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() [4/4]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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() [2/4]

ASPOSECPP_SHARED_API 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

◆ DrawEllipse() [3/4]

ASPOSECPP_SHARED_API 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() [4/4]

ASPOSECPP_SHARED_API 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

◆ DrawIcon() [1/2]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ DrawIcon() [2/2]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ DrawIconUnstretched()

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ DrawImage() [1/28]

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

NOT IMPLEMENTED.

Parameters
imageIGNORED
destPointsIGNORED
Exceptions
NotImplementedExceptionAlways

◆ DrawImage() [2/28]

ASPOSECPP_SHARED_API 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() [3/28]

ASPOSECPP_SHARED_API 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() [4/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() [5/28]

ASPOSECPP_SHARED_API 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() [6/28]

ASPOSECPP_SHARED_API 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() [7/28]

ASPOSECPP_SHARED_API 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() [8/28]

ASPOSECPP_SHARED_API 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() [9/28]

ASPOSECPP_SHARED_API 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() [10/28]

ASPOSECPP_SHARED_API 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() [11/28]

ASPOSECPP_SHARED_API 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

◆ DrawImage() [12/28]

ASPOSECPP_SHARED_API 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() [13/28]

ASPOSECPP_SHARED_API 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() [14/28]

ASPOSECPP_SHARED_API 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() [15/28]

ASPOSECPP_SHARED_API 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() [16/28]

ASPOSECPP_SHARED_API 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() [17/28]

ASPOSECPP_SHARED_API 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() [18/28]

ASPOSECPP_SHARED_API 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() [19/28]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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() [21/28]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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() [23/28]

ASPOSECPP_SHARED_API 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() [24/28]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ DrawImage() [25/28]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ DrawImage() [26/28]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ DrawImage() [27/28]

ASPOSECPP_SHARED_API 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() [28/28]

ASPOSECPP_SHARED_API 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

◆ DrawImageUnscaled() [1/4]

ASPOSECPP_SHARED_API 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() [2/4]

ASPOSECPP_SHARED_API 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

◆ DrawImageUnscaled() [3/4]

ASPOSECPP_SHARED_API 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() [4/4]

ASPOSECPP_SHARED_API 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.

◆ DrawImageUnscaledAndClipped()

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ DrawLine() [1/4]

ASPOSECPP_SHARED_API 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() [2/4]

ASPOSECPP_SHARED_API 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

◆ DrawLine() [3/4]

ASPOSECPP_SHARED_API 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() [4/4]

ASPOSECPP_SHARED_API 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

◆ DrawLines() [1/2]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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()

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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() [2/4]

ASPOSECPP_SHARED_API 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() [3/4]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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() [2/3]

ASPOSECPP_SHARED_API 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() [3/3]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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() [2/3]

ASPOSECPP_SHARED_API 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

◆ DrawString() [3/3]

ASPOSECPP_SHARED_API 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

◆ EndContainer()

ASPOSECPP_SHARED_API 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]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ EnumerateMetafile() [2/12]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ EnumerateMetafile() [3/12]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ EnumerateMetafile() [4/12]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ EnumerateMetafile() [5/12]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ EnumerateMetafile() [6/12]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ EnumerateMetafile() [7/12]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ EnumerateMetafile() [8/12]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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() [10/12]

ASPOSECPP_SHARED_API 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() [11/12]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ EnumerateMetafile() [12/12]

ASPOSECPP_SHARED_API 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]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ ExcludeClip() [2/2]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ FillClosedCurve() [1/2]

ASPOSECPP_SHARED_API 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

◆ FillClosedCurve() [2/2]

ASPOSECPP_SHARED_API 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

◆ FillEllipse() [1/4]

ASPOSECPP_SHARED_API 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() [2/4]

ASPOSECPP_SHARED_API 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

◆ FillEllipse() [3/4]

ASPOSECPP_SHARED_API 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() [4/4]

ASPOSECPP_SHARED_API 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

◆ FillPath()

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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() [2/3]

ASPOSECPP_SHARED_API 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() [3/3]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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()

ASPOSECPP_SHARED_API 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()

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

Triggers the immediate execution of all pending draw operations

Parameters
intentionIGNORED

◆ FromHwnd()

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ FromHwndInternal()

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ FromImage()

static ASPOSECPP_SHARED_API 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()

ASPOSECPP_SHARED_API 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()

ASPOSECPP_SHARED_API 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()

ASPOSECPP_SHARED_API 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()

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

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

◆ get_DpiX()

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

Returns the horizontal resolution.

◆ get_DpiY()

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

Returns the vertical resolution.

◆ get_InterpolationMode()

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

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

◆ get_IsClipEmpty()

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ get_IsVisibleClipEmpty()

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ get_PageScale()

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

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

◆ get_PageUnit()

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

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

◆ get_PixelOffsetMode()

ASPOSECPP_SHARED_API 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()

ASPOSECPP_SHARED_API 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()

ASPOSECPP_SHARED_API 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()

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ get_TextRenderingHint()

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

Returns a value that indicates the quality of text rendering.

◆ get_Transform()

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

Returns the geometric world transformation for the current Graphics object.

◆ get_VisibleClipBounds()

ASPOSECPP_SHARED_API 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()

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ GetNearestColor()

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ GetSkCanvas()

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

◆ IntersectClip() [1/3]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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

◆ IntersectClip() [3/3]

ASPOSECPP_SHARED_API 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

◆ IsVisible() [1/8]

ASPOSECPP_SHARED_API 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() [2/8]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ IsVisible() [3/8]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ IsVisible() [4/8]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ IsVisible() [5/8]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ IsVisible() [6/8]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ IsVisible() [7/8]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ IsVisible() [8/8]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ MeasureCharacterRanges()

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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() [2/4]

ASPOSECPP_SHARED_API 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() [3/4]

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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()

ASPOSECPP_SHARED_API 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]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ ReleaseHdc() [2/2]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ ResetClip()

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

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

◆ ResetTransform()

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

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

◆ Restore()

ASPOSECPP_SHARED_API 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()

ASPOSECPP_SHARED_API 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()

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

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

◆ ScaleTransform()

ASPOSECPP_SHARED_API 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()

ASPOSECPP_SHARED_API 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()

ASPOSECPP_SHARED_API 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()

ASPOSECPP_SHARED_API 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()

ASPOSECPP_SHARED_API 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()

ASPOSECPP_SHARED_API 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()

ASPOSECPP_SHARED_API 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()

ASPOSECPP_SHARED_API 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()

ASPOSECPP_SHARED_API 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()

ASPOSECPP_SHARED_API 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()

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ set_TextRenderingHint()

ASPOSECPP_SHARED_API 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()

ASPOSECPP_SHARED_API 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]

ASPOSECPP_SHARED_API 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() [2/5]

ASPOSECPP_SHARED_API 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() [3/5]

ASPOSECPP_SHARED_API 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

◆ SetClip() [4/5]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ SetClip() [5/5]

ASPOSECPP_SHARED_API 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

◆ TransformPoints() [1/2]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ TransformPoints() [2/2]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ TranslateClip() [1/2]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ TranslateClip() [2/2]

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

NOT IMPLEMENTED.

Exceptions
NotImplementedExceptionAlways

◆ TranslateTransform()

ASPOSECPP_SHARED_API 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