Represents a set of connected lines and curves. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
Inherits System::Object.
Public Member Functions | |
ASPOSECPP_SHARED_API | GraphicsPath (FillMode fillMode=FillMode::Alternate) |
Constructs a new instance of GraphicsPath class with the specified fill mode. More... | |
ASPOSECPP_SHARED_API | GraphicsPath (const ArrayPtr< Point > &pts, const ArrayPtr< uint8_t > &types, FillMode fillMode=FillMode::Alternate) |
Constructs a new instance of GraphicsPath object that represents the specified path. More... | |
ASPOSECPP_SHARED_API | GraphicsPath (const ArrayPtr< PointF > &pts, const ArrayPtr< uint8_t > &types, FillMode fillMode=FillMode::Alternate) |
Constructs a new instance of GraphicsPath object that represents the specified path. More... | |
ASPOSECPP_SHARED_API | GraphicsPath (const SkPath &path) |
ASPOSECPP_SHARED_API | ~GraphicsPath () |
Destructor. More... | |
ASPOSECPP_SHARED_API SharedPtr< PathData > | get_PathData () |
Returns a PathData object containing the points that make up a path represented by the current object and their types. More... | |
ASPOSECPP_SHARED_API ArrayPtr< uint8_t > | get_PathTypes () const |
Returns an array that contains values that indicate the types of the points that make up a path represented by the current object. More... | |
ASPOSECPP_SHARED_API ArrayPtr< PointF > | get_PathPoints () const |
Returns an array that contains points that make up a path represented by the current object. More... | |
ASPOSECPP_SHARED_API int | get_PointCount () const |
Returns the number of points in the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | Reverse () |
Reverses the order of points in the PathPoints array of this GraphicsPath. More... | |
ASPOSECPP_SHARED_API FillMode | get_FillMode () |
Returns the fill mode of the current object. More... | |
ASPOSECPP_SHARED_API void | set_FillMode (FillMode mode) |
Sets the fill mode of the current object. More... | |
ASPOSECPP_SHARED_API void | AddBezier (const Point &pt1, const Point &pt2, const Point &pt3, const Point &pt4) |
Adds the specified cubic Bezier curve to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddBezier (const PointF &pt1, const PointF &pt2, const PointF &pt3, const PointF &pt4) |
Adds the specified cubic Bezier curve to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddBezier (int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4) |
Adds the specified cubic Bezier curve to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddBezier (float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4) |
Adds the specified cubic Bezier curve to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddBeziers (const ArrayPtr< Point > &points) |
Adds a sequence of connected cubic Bezier curves to the current figure. More... | |
ASPOSECPP_SHARED_API void | AddBeziers (const ArrayPtr< PointF > &points) |
Adds a sequence of connected cubic Bezier curves to the current figure. More... | |
ASPOSECPP_SHARED_API void | AddLine (const Point &pt1, const Point &pt2) |
Adds the specified line to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddLine (const PointF &pt1, const PointF &pt2) |
Adds the specified line to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddLine (int x1, int y1, int x2, int y2) |
Adds the specified line to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddLine (float x1, float y1, float x2, float y2) |
Adds the specified line to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddLines (const ArrayPtr< PointF > &points) |
Adds the specified series of connected line segments to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddLines (const ArrayPtr< Point > &points) |
Adds the specified series of connected line segments to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddString (const String &text, const SharedPtr< FontFamily > &family, int style, float emSize, Point origin, const SharedPtr< StringFormat > &stringFormat) |
Adds a string of text to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddString (const String &text, const SharedPtr< FontFamily > &family, int style, float emSize, PointF origin, const SharedPtr< StringFormat > &stringFormat) |
Adds a string of text to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddString (const String &text, const SharedPtr< FontFamily > &family, int style, float emSize, Rectangle layoutRect, const SharedPtr< StringFormat > &stringFormat) |
Adds a string of text to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddString (const String &text, const SharedPtr< FontFamily > &family, int style, float emSize, RectangleF layoutRect, const SharedPtr< StringFormat > &stringFormat) |
Adds a string of text to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddArc (float x, float y, float width, float height, float startAngle, float sweepAngle) |
Adds the specified elliptical arc to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddArc (int x, int y, int width, int height, float startAngle, float sweepAngle) |
Adds the specified elliptical arc to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddArc (const RectangleF &rect, float startAngle, float sweepAngle) |
Adds the specified elliptical arc to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddArc (const Rectangle &rect, float startAngle, float sweepAngle) |
Adds the specified elliptical arc to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddEllipse (float x, float y, float width, float height) |
Adds the specified ellipse to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddEllipse (int x, int y, int width, int height) |
Adds the specified ellipse to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddEllipse (const RectangleF &rect) |
Adds the specified ellipse to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddEllipse (const Rectangle &rect) |
Adds the specified ellipse to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddPie (float x, float y, float width, float height, float startAngle, float sweepAngle) |
Adds the specified outline of the pie shape to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddPie (int x, int y, int width, int height, float startAngle, float sweepAngle) |
Adds the specified outline of the pie shape to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddPie (const Rectangle &rect, float startAngle, float sweepAngle) |
Adds the specified outline of the pie shape to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddPath (const SharedPtr< GraphicsPath > &path, bool connect) |
Adds the specified path to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddRectangle (const Rectangle &rect) |
Adds the specified rectangle to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddRectangle (const RectangleF &rect) |
Adds the specified rectangle to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddRectangles (const ArrayPtr< Rectangle > &rects) |
Adds the specified series of rectangles to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddRectangles (const ArrayPtr< RectangleF > &rects) |
Adds the specified series of rectangles to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddPolygon (const ArrayPtr< PointF > &points) |
Adds the specified polygon to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddPolygon (const ArrayPtr< Point > &points) |
Adds the specified polygon to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddCurve (const ArrayPtr< PointF > &points, float tension=0.5) |
Adds the specified curve to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddCurve (const ArrayPtr< Point > &points, float tension=0.5) |
Adds the specified curve to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddCurve (const ArrayPtr< PointF > &points, int offset, int number_of_segments, float tension) |
Adds the specified curve to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddCurve (const ArrayPtr< Point > &points, int offset, int number_of_segments, float tension) |
Adds the specified curve to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddClosedCurve (const ArrayPtr< PointF > &points, float tension=0.5) |
Adds the specified closed curve to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddClosedCurve (const ArrayPtr< Point > &points, float tension=0.5) |
Adds the specified closed curve to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | StartFigure () |
Starts a new figure. More... | |
ASPOSECPP_SHARED_API void | CloseFigure () |
Closes the current figure and starts a new one. More... | |
ASPOSECPP_SHARED_API void | CloseAllFigures () |
Closes all open figures and starts a new one. More... | |
ASPOSECPP_SHARED_API RectangleF | GetBounds (const MatrixPtr &matrix=nullptr, const SharedPtr< Pen > &pen=nullptr) const |
Returns a RectangleF object that represents a rectangle that bounds the path represented by the current object when it is transformed with the specified matrix. More... | |
ASPOSECPP_SHARED_API PointF | GetLastPoint () const |
Returns a PointF object representing the last point in the path. More... | |
ASPOSECPP_SHARED_API void | Reset () |
Empties the path by removing all points from it. More... | |
ASPOSECPP_SHARED_API void | Transform (const MatrixPtr &matrix) |
Transforms the path represented by the current object by applying the specified transform matrix to it. More... | |
ASPOSECPP_SHARED_API void | Transform (const SkMatrix &matrix) |
ASPOSECPP_SHARED_API void | Flatten () |
Flattens each curve in the path by converting them into a series of connected lines. The flatness value of 0.25 is used. More... | |
ASPOSECPP_SHARED_API void | Flatten (const MatrixPtr &matrix) |
Flattens each curve in the path by converting them into a series of connected lines. The flatness value of 0.25 is used. More... | |
ASPOSECPP_SHARED_API void | Flatten (const MatrixPtr &matrix, float flatness) |
Flattens each curve in the path by converting them into a series of connected lines. More... | |
ASPOSECPP_SHARED_API void | Widen (const SharedPtr< Pen > &pen) |
Replaces this path with an outline around the original path. More... | |
ASPOSECPP_SHARED_API bool | IsVisible (const PointF &point) |
Determines if the specified point is contained within the path represented by the current object. More... | |
ASPOSECPP_SHARED_API bool | IsVisible (float x, float y) |
Determines if the specified point is contained within the path represented by the current object. More... | |
ASPOSECPP_SHARED_API bool | IsOutlineVisible (const PointF &point, const SharedPtr< Pen > &pen) |
Indicates whether the specified point is contained within (under) the outline of this GraphicsPath when drawn with the specified Pen. NOT EMPLEMENTED. More... | |
virtual ASPOSECPP_SHARED_API SharedPtr< GraphicsPath > | Clone () |
Creates a copy of the current object. More... | |
void | Dispose () |
Releases all operating system resources acquired by the current object. More... | |
Detail::FigureType | GetFigureFlags () |
Returns a value which is a bitwise combination of Detail::FigureType values that indicates what types of figures are contained within the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | SetMarkers () |
NOT IMPLEMENTED. More... | |
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... | |
Object & | operator= (Object const &x) |
Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object * | SharedRefAdded () |
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 TypeInfo & | GetType () 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) |
Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More... | |
template<> | |
bool | Equals (double const &objA, double const &objB) |
Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More... | |
template<> | |
bool | ReferenceEquals (String const &str, std::nullptr_t) |
Specialization of Object::ReferenceEquals for case of string and nullptr. More... | |
template<> | |
bool | ReferenceEquals (String const &str1, String const &str2) |
Specialization of Object::ReferenceEquals for case of strings. More... | |
Protected Member Functions | |
ASPOSECPP_SHARED_API void | AddBezierImpl (SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, SkScalar x3, SkScalar y3, SkScalar x4, SkScalar y4) |
Adds the specified cubic Bezier curve to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddLineImpl (SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2) |
Adds the specified line to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddArcImpl (SkScalar left, SkScalar top, SkScalar width, SkScalar height, SkScalar startAngle, SkScalar sweepAngle) |
Adds the specified elliptical arc to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddEllipseImpl (SkScalar left, SkScalar top, SkScalar right, SkScalar bottom) |
Adds the specified ellipse to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddPieImpl (SkScalar left, SkScalar top, SkScalar right, SkScalar bottom, SkScalar startAngle, SkScalar sweepAngle) |
Adds the specified outline of the pie shape to the path represented by the current object. More... | |
ASPOSECPP_SHARED_API void | AddStringImpl (const String &text, const SharedPtr< FontFamily > &family, int style, float emSize, SkRect layoutRect, const SharedPtr< StringFormat > &stringFormat) |
Adds a string of text to the path represented by the current object. More... | |
std::shared_ptr< SkPath > | GetSkPath (const SharedPtr< Pen > &pen, const SkMatrix &matrix) |
Returns a processed SkPath. More... | |
ASPOSECPP_SHARED_API ArrayPtr< uint8_t > | get_PathTypesImpl (bool forceClose) const |
Returns an array that contains values that indicate the types of the points that make up a path represented by the current object. More... | |
ASPOSECPP_SHARED_API ArrayPtr< uint8_t > | get_PathTypesImpl () const |
Returns an array that contains values that indicate the types of the points that make up a path represented by the current object. More... | |
Static Protected Member Functions | |
static ASPOSECPP_SHARED_API SkPath | ConvertCurves (const SkPath &source) |
Converts path curves into the ones available in .NET engine so translated code can work with them. More... | |
static ASPOSECPP_SHARED_API bool | NeedConvertCurves (const SkPath &source) |
Check if ConvertCurves should be applied to source. More... | |
Protected Attributes | |
std::shared_ptr< SkPath > | m_sk_path |
The underlying SkPath object that contains the information about the path. More... | |
bool | m_figure_started = true |
Indicates whether a figure has been started. More... | |
Detail::FigureType | m_figure_flags = Detail::FigureType::Unknown |
A bitwise combination of Detail::FigureType values that indicates what types of figures are contained within the path represented by the current object. More... | |
Additional Inherited Members | |
Public Types inherited from System::Object | |
typedef SmartPtr< Object > | ptr |
Alias for smart pointer type. More... | |
Static Public Member Functions inherited from System::Object | |
static bool | ReferenceEquals (ptr const &objA, ptr const &objB) |
Compares objects by reference. More... | |
template<typename T > | |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, T const &objB) |
Compares objects by reference. More... | |
template<typename T > | |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, std::nullptr_t) |
Reference-compares value type object with nullptr. More... | |
template<typename T1 , typename T2 > | |
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
Compares reference type objects in C# style. More... | |
template<typename T1 , typename T2 > | |
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
Compares value type objects in C# style. More... | |
static const TypeInfo & | Type () |
Implements C# typeof(System.Object) construct. More... | |
Represents a set of connected lines and curves. 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.
ASPOSECPP_SHARED_API System::Drawing::Drawing2D::GraphicsPath::GraphicsPath | ( | FillMode | fillMode = FillMode::Alternate | ) |
Constructs a new instance of GraphicsPath class with the specified fill mode.
fillMode | Specifies how the interior of the closed path represented by the object being created should be filled |
ASPOSECPP_SHARED_API System::Drawing::Drawing2D::GraphicsPath::GraphicsPath | ( | const ArrayPtr< Point > & | pts, |
const ArrayPtr< uint8_t > & | types, | ||
FillMode | fillMode = FillMode::Alternate |
||
) |
Constructs a new instance of GraphicsPath object that represents the specified path.
pts | An array containing the points that specify the path to be represented by the object being created |
types | An array containing the values tha specify the types of the corresponding points in pts array |
fillMode | Specifies how the interior of the closed path represented by the object being created should be filled |
ASPOSECPP_SHARED_API System::Drawing::Drawing2D::GraphicsPath::GraphicsPath | ( | const ArrayPtr< PointF > & | pts, |
const ArrayPtr< uint8_t > & | types, | ||
FillMode | fillMode = FillMode::Alternate |
||
) |
Constructs a new instance of GraphicsPath object that represents the specified path.
pts | An array containing the points that specify the path to be represented by the object being created |
types | An array containing the values tha specify the types of the corresponding points in pts array |
fillMode | Specifies how the interior of the closed path represented by the object being created should be filled |
ASPOSECPP_SHARED_API System::Drawing::Drawing2D::GraphicsPath::GraphicsPath | ( | const SkPath & | path | ) |
ASPOSECPP_SHARED_API System::Drawing::Drawing2D::GraphicsPath::~GraphicsPath | ( | ) |
Destructor.
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddArc | ( | float | x, |
float | y, | ||
float | width, | ||
float | height, | ||
float | startAngle, | ||
float | sweepAngle | ||
) |
Adds the specified elliptical arc to the path represented by the current object.
x | The X coordinate of the upper left corner of the rectangle that bounds the ellipse from which the arc is drawn |
y | The Y coordinate of the upper left corner of the rectangle that bounds the ellipse from which the arc is drawn |
width | The width of the upper left corner of the rectangle that bounds the ellipse from which the arc is drawn |
height | The height of the upper left corner of the rectangle that bounds the ellipse from which the arc is drawn |
startAngle | Specifies the starting angle of the arc in degrees, measured clockwise from the X-axis |
sweepAngle | Specifies the angle between the starting angle and the end of the arc |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddArc | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
float | startAngle, | ||
float | sweepAngle | ||
) |
Adds the specified elliptical arc to the path represented by the current object.
x | The X coordinate of the upper left corner of the rectangle that bounds the ellipse from which the arc is drawn |
y | The Y coordinate of the upper left corner of the rectangle that bounds the ellipse from which the arc is drawn |
width | The width of the upper left corner of the rectangle that bounds the ellipse from which the arc is drawn |
height | The height of the upper left corner of the rectangle that bounds the ellipse from which the arc is drawn |
startAngle | Specifies the starting angle of the arc in degrees, measured clockwise from the X-axis |
sweepAngle | Specifies the angle between the starting angle and the end of the arc |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddArc | ( | const RectangleF & | rect, |
float | startAngle, | ||
float | sweepAngle | ||
) |
Adds the specified elliptical arc to the path represented by the current object.
rect | The rectangle that bounds the ellipse from which the arc is drawn |
startAngle | Specifies the starting angle of the arc in degrees, measured clockwise from the X-axis |
sweepAngle | Specifies the angle between the starting angle and the end of the arc |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddArc | ( | const Rectangle & | rect, |
float | startAngle, | ||
float | sweepAngle | ||
) |
Adds the specified elliptical arc to the path represented by the current object.
rect | The rectangle that bounds the ellipse from which the arc is drawn |
startAngle | Specifies the starting angle of the arc in degrees, measured clockwise from the X-axis |
sweepAngle | Specifies the angle between the starting angle and the end of the arc |
|
protected |
Adds the specified elliptical arc to the path represented by the current object.
left | The X coordinate of the upper left corner of the rectangle that bounds the ellipse from which the arc is drawn |
top | The Y coordinate of the upper left corner of the rectangle that bounds the ellipse from which the arc is drawn |
width | The width of the upper left corner of the rectangle that bounds the ellipse from which the arc is drawn |
height | The height of the upper left corner of the rectangle that bounds the ellipse from which the arc is drawn |
startAngle | Specifies the starting angle of the arc in degrees, measured clockwise from the X-axis |
sweepAngle | Specifies the angle between the starting angle and the end of the arc |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddBezier | ( | const Point & | pt1, |
const Point & | pt2, | ||
const Point & | pt3, | ||
const Point & | pt4 | ||
) |
Adds the specified cubic Bezier curve to the path represented by the current object.
pt1 | The starting point of the curve to add |
pt2 | The 1-st control point of the curve to add |
pt3 | The 2-nd control point of the curve to add |
pt4 | The ending point of the curve to add |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddBezier | ( | const PointF & | pt1, |
const PointF & | pt2, | ||
const PointF & | pt3, | ||
const PointF & | pt4 | ||
) |
Adds the specified cubic Bezier curve to the path represented by the current object.
pt1 | The starting point of the curve to add |
pt2 | The 1-st control point of the curve to add |
pt3 | The 2-nd control point of the curve to add |
pt4 | The ending point of the curve to add |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddBezier | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | x3, | ||
int | y3, | ||
int | x4, | ||
int | y4 | ||
) |
Adds the specified cubic Bezier curve to the path represented by the current object.
x1 | The X coordinate of the starting point of the curve to add |
y1 | The Y coordinate of the starting point of the curve to add |
x2 | The X coordinate of the 1-st control point of the curve to add |
y2 | The Y coordinate of the 1-st control point of the curve to add |
x3 | The X coordinate of the 2-nd control point of the curve to add |
y3 | The Y coordinate of the 2-nd control point of the curve to add |
x4 | The X coordinate of the ending point of the curve to add |
y4 | The Y coordinate of the ending point of the curve to add |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddBezier | ( | float | x1, |
float | y1, | ||
float | x2, | ||
float | y2, | ||
float | x3, | ||
float | y3, | ||
float | x4, | ||
float | y4 | ||
) |
Adds the specified cubic Bezier curve to the path represented by the current object.
x1 | The X coordinate of the starting point of the curve to add |
y1 | The Y coordinate of the starting point of the curve to add |
x2 | The X coordinate of the 1-st control point of the curve to add |
y2 | The Y coordinate of the 1-st control point of the curve to add |
x3 | The X coordinate of the 2-nd control point of the curve to add |
y3 | The Y coordinate of the 2-nd control point of the curve to add |
x4 | The X coordinate of the ending point of the curve to add |
y4 | The Y coordinate of the ending point of the curve to add |
|
protected |
Adds the specified cubic Bezier curve to the path represented by the current object.
x1 | The X coordinate of the starting point of the curve to add |
y1 | The Y coordinate of the starting point of the curve to add |
x2 | The X coordinate of the 1-st control point of the curve to add |
y2 | The Y coordinate of the 1-st control point of the curve to add |
x3 | The X coordinate of the 2-nd control point of the curve to add |
y3 | The Y coordinate of the 2-nd control point of the curve to add |
x4 | The X coordinate of the ending point of the curve to add |
y4 | The Y coordinate of the ending point of the curve to add |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddBeziers | ( | const ArrayPtr< Point > & | points | ) |
Adds a sequence of connected cubic Bezier curves to the current figure.
points | An array of Point structures that represents the points that define the curves |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddBeziers | ( | const ArrayPtr< PointF > & | points | ) |
Adds a sequence of connected cubic Bezier curves to the current figure.
points | An array of PointF structures that represents the points that define the curves |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddClosedCurve | ( | const ArrayPtr< PointF > & | points, |
float | tension = 0.5 |
||
) |
Adds the specified closed curve to the path represented by the current object.
points | Points that specify the curve |
tension | Specifies the amount that the curve bends between the control points |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddClosedCurve | ( | const ArrayPtr< Point > & | points, |
float | tension = 0.5 |
||
) |
Adds the specified closed curve to the path represented by the current object.
points | Points that specify the curve |
tension | Specifies the amount that the curve bends between the control points |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddCurve | ( | const ArrayPtr< PointF > & | points, |
float | tension = 0.5 |
||
) |
Adds the specified curve to the path represented by the current object.
points | Points that specify the curve |
tension | Specifies the amount that the curve bends between the control points |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddCurve | ( | const ArrayPtr< Point > & | points, |
float | tension = 0.5 |
||
) |
Adds the specified curve to the path represented by the current object.
points | Points that specify the curve |
tension | Specifies the amount that the curve bends between the control points |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddCurve | ( | const ArrayPtr< PointF > & | points, |
int | offset, | ||
int | number_of_segments, | ||
float | tension | ||
) |
Adds the specified curve to the path represented by the current object.
points | Points that specify the curve |
offset | The index of the point in points that is used as the staring poit of the curve |
number_of_segments | The number of segments used to draw the curve |
tension | Specifies the amount that the curve bends between the control points |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddCurve | ( | const ArrayPtr< Point > & | points, |
int | offset, | ||
int | number_of_segments, | ||
float | tension | ||
) |
Adds the specified curve to the path represented by the current object.
points | Points that specify the curve |
offset | The index of the point in points that is used as the staring poit of the curve |
number_of_segments | The number of segments used to draw the curve |
tension | Specifies the amount that the curve bends between the control points |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddEllipse | ( | float | x, |
float | y, | ||
float | width, | ||
float | height | ||
) |
Adds the specified ellipse to the path represented by the current object.
x | The X coordinate of the upper left corner of the rectangle that bounds the ellipse to add |
y | The Y coordinate of the upper left corner of the rectangle that bounds the ellipse to add |
width | The width of the upper left corner of the rectangle that bounds the ellipse to add |
height | The height of the upper left corner of the rectangle that bounds the ellipse to add |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddEllipse | ( | int | x, |
int | y, | ||
int | width, | ||
int | height | ||
) |
Adds the specified ellipse to the path represented by the current object.
x | The X coordinate of the upper left corner of the rectangle that bounds the ellipse to add |
y | The Y coordinate of the upper left corner of the rectangle that bounds the ellipse to add |
width | The width of the upper left corner of the rectangle that bounds the ellipse to add |
height | The height of the upper left corner of the rectangle that bounds the ellipse to add |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddEllipse | ( | const RectangleF & | rect | ) |
Adds the specified ellipse to the path represented by the current object.
rect | Specifies a rectangle that bounds the ellipse to add |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddEllipse | ( | const Rectangle & | rect | ) |
Adds the specified ellipse to the path represented by the current object.
rect | Specifies a rectangle that bounds the ellipse to add |
|
protected |
Adds the specified ellipse to the path represented by the current object.
left | The X coordinate of the upper left corner of the rectangle that bounds the ellipse to add |
top | The Y coordinate of the upper left corner of the rectangle that bounds the ellipse to add |
right | The X coordinate of the bottom right corner of the rectangle that bounds the ellipse to add |
bottom | The Y coordinate of the bottom right corner of the rectangle that bounds the ellipse to add |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddLine | ( | const Point & | pt1, |
const Point & | pt2 | ||
) |
Adds the specified line to the path represented by the current object.
pt1 | The starting point of the line to add |
pt2 | The ending point of the line to add |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddLine | ( | const PointF & | pt1, |
const PointF & | pt2 | ||
) |
Adds the specified line to the path represented by the current object.
pt1 | The starting point of the line to add |
pt2 | The ending point of the line to add |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddLine | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2 | ||
) |
Adds the specified line to the path represented by the current object.
x1 | The X coordinate of the starting point of the line to add |
y1 | The Y coordinate of the starting point of the line to add |
x2 | The X coordinate of the ending point of the line to add |
y2 | The Y coordinate of the ending point of the line to add |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddLine | ( | float | x1, |
float | y1, | ||
float | x2, | ||
float | y2 | ||
) |
Adds the specified line to the path represented by the current object.
x1 | The X coordinate of the starting point of the line to add |
y1 | The Y coordinate of the starting point of the line to add |
x2 | The X coordinate of the ending point of the line to add |
y2 | The Y coordinate of the ending point of the line to add |
|
protected |
Adds the specified line to the path represented by the current object.
x1 | The X coordinate of the starting point of the line to add |
y1 | The Y coordinate of the starting point of the line to add |
x2 | The X coordinate of the ending point of the line to add |
y2 | The Y coordinate of the ending point of the line to add |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddLines | ( | const ArrayPtr< PointF > & | points | ) |
Adds the specified series of connected line segments to the path represented by the current object.
points | An array containing points that specify the line segments to add |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddLines | ( | const ArrayPtr< Point > & | points | ) |
Adds the specified series of connected line segments to the path represented by the current object.
points | An array containing points that specify the line segments to add |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddPath | ( | const SharedPtr< GraphicsPath > & | path, |
bool | connect | ||
) |
Adds the specified path to the path represented by the current object.
path | The path to add |
connect | True specifies that the last first figure in the path is part of the last figure of the path represented by the current object; false specifies that the first figure in the path and the last figure in the path represented by the current object are separate figures |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddPie | ( | float | x, |
float | y, | ||
float | width, | ||
float | height, | ||
float | startAngle, | ||
float | sweepAngle | ||
) |
Adds the specified outline of the pie shape to the path represented by the current object.
x | The X coordinate of the upper left corner of the rectangle that bounds the ellipse from which the pie is drawn |
y | The Y coordinate of the upper left corner of the rectangle that bounds the ellipse from which the pie is drawn |
width | The width of the upper left corner of the rectangle that bounds the ellipse from which the pie is drawn |
height | The height of the upper left corner of the rectangle that bounds the ellipse from which the pie is drawn |
startAngle | Specifies the starting angle of the pie in degrees, measured clockwise from the X-axis |
sweepAngle | Specifies the angle between the starting angle and the end of the pie |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddPie | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
float | startAngle, | ||
float | sweepAngle | ||
) |
Adds the specified outline of the pie shape to the path represented by the current object.
x | The X coordinate of the upper left corner of the rectangle that bounds the ellipse from which the pie is drawn |
y | The Y coordinate of the upper left corner of the rectangle that bounds the ellipse from which the pie is drawn |
width | The width of the upper left corner of the rectangle that bounds the ellipse from which the pie is drawn |
height | The height of the upper left corner of the rectangle that bounds the ellipse from which the pie is drawn |
startAngle | Specifies the starting angle of the pie in degrees, measured clockwise from the X-axis |
sweepAngle | Specifies the angle between the starting angle and the end of the pie |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddPie | ( | const Rectangle & | rect, |
float | startAngle, | ||
float | sweepAngle | ||
) |
Adds the specified outline of the pie shape to the path represented by the current object.
rect | The rectangle that bounds the ellipse from which the pie is drawn |
startAngle | Specifies the starting angle of the pie in degrees, measured clockwise from the X-axis |
sweepAngle | Specifies the angle between the starting angle and the end of the pie |
|
protected |
Adds the specified outline of the pie shape to the path represented by the current object.
left | The X coordinate of the upper left corner of the rectangle that bounds the ellipse from which the pie is drawn |
top | The Y coordinate of the upper left corner of the rectangle that bounds the ellipse from which the pie is drawn |
right | The X coordinate of the bottom right corner of the rectangle that bounds the ellipse from which the pie is drawn |
bottom | The Y coordinate of the bottom right corner of the rectangle that bounds the ellipse from which the pie is drawn |
startAngle | Specifies the starting angle of the pie in degrees, measured clockwise from the X-axis |
sweepAngle | Specifies the angle between the starting angle and the end of the pie |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddPolygon | ( | const ArrayPtr< PointF > & | points | ) |
Adds the specified polygon to the path represented by the current object.
points | An array containing points that specify the polygon to add |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddPolygon | ( | const ArrayPtr< Point > & | points | ) |
Adds the specified polygon to the path represented by the current object.
points | An array containing points that specify the polygon to add |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddRectangle | ( | const Rectangle & | rect | ) |
Adds the specified rectangle to the path represented by the current object.
rect | A rectangle to add |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddRectangle | ( | const RectangleF & | rect | ) |
Adds the specified rectangle to the path represented by the current object.
rect | A rectangle to add |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddRectangles | ( | const ArrayPtr< Rectangle > & | rects | ) |
Adds the specified series of rectangles to the path represented by the current object.
rects | An array of Rectangle objects representing the rectangles to add |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddRectangles | ( | const ArrayPtr< RectangleF > & | rects | ) |
Adds the specified series of rectangles to the path represented by the current object.
rects | An array of RectangleF objects representing the rectangles to add |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddString | ( | const String & | text, |
const SharedPtr< FontFamily > & | family, | ||
int | style, | ||
float | emSize, | ||
Point | origin, | ||
const SharedPtr< StringFormat > & | stringFormat | ||
) |
Adds a string of text to the path represented by the current object.
text | The text to add |
family | The font family used to draw the text |
style | A FontStyle enumeration value tha specifies the font style to use |
emSize | The height of the em square box that bounds each character of the string |
origin | Specifies the location where the text starts |
stringFormat | The format of the string |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddString | ( | const String & | text, |
const SharedPtr< FontFamily > & | family, | ||
int | style, | ||
float | emSize, | ||
PointF | origin, | ||
const SharedPtr< StringFormat > & | stringFormat | ||
) |
Adds a string of text to the path represented by the current object.
text | The text to add |
family | The font family used to draw the text |
style | A FontStyle enumeration value tha specifies the font style to use |
emSize | The height of the em square box that bounds each character of the string |
origin | Specifies the location where the text starts |
stringFormat | The format of the string |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddString | ( | const String & | text, |
const SharedPtr< FontFamily > & | family, | ||
int | style, | ||
float | emSize, | ||
Rectangle | layoutRect, | ||
const SharedPtr< StringFormat > & | stringFormat | ||
) |
Adds a string of text to the path represented by the current object.
text | The text to add |
family | The font family used to draw the text |
style | A FontStyle enumeration value tha specifies the font style to use |
emSize | The height of the em square box that bounds each character of the string |
layoutRect | A rectangle that bounds the text |
stringFormat | The format of the string |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::AddString | ( | const String & | text, |
const SharedPtr< FontFamily > & | family, | ||
int | style, | ||
float | emSize, | ||
RectangleF | layoutRect, | ||
const SharedPtr< StringFormat > & | stringFormat | ||
) |
Adds a string of text to the path represented by the current object.
text | The text to add |
family | The font family used to draw the text |
style | A FontStyle enumeration value tha specifies the font style to use |
emSize | The height of the em square box that bounds each character of the string |
layoutRect | A rectangle that bounds the text |
stringFormat | The format of the string |
|
protected |
Adds a string of text to the path represented by the current object.
text | The text to add |
family | The font family used to draw the text |
style | A FontStyle enumeration value tha specifies the font style to use |
emSize | The height of the em square box that bounds each character of the string |
layoutRect | A rectangle that bounds the text |
stringFormat | The format of the string |
|
virtual |
Creates a copy of the current object.
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::CloseAllFigures | ( | ) |
Closes all open figures and starts a new one.
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::CloseFigure | ( | ) |
Closes the current figure and starts a new one.
|
staticprotected |
Converts path curves into the ones available in .NET engine so translated code can work with them.
source | Path to convert curves of. |
|
inline |
Releases all operating system resources acquired by the current object.
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::Flatten | ( | ) |
Flattens each curve in the path by converting them into a series of connected lines. The flatness value of 0.25 is used.
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::Flatten | ( | const MatrixPtr & | matrix | ) |
Flattens each curve in the path by converting them into a series of connected lines. The flatness value of 0.25 is used.
matrix | The transform matrix to apply to the path before flattening |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::Flatten | ( | const MatrixPtr & | matrix, |
float | flatness | ||
) |
Flattens each curve in the path by converting them into a series of connected lines.
matrix | The transform matrix to apply to the path before flattening |
flatness | Specifies the maximum permitted error between the curve and its flattened approximation |
ASPOSECPP_SHARED_API FillMode System::Drawing::Drawing2D::GraphicsPath::get_FillMode | ( | ) |
Returns the fill mode of the current object.
Returns a PathData object containing the points that make up a path represented by the current object and their types.
ASPOSECPP_SHARED_API ArrayPtr<PointF> System::Drawing::Drawing2D::GraphicsPath::get_PathPoints | ( | ) | const |
Returns an array that contains points that make up a path represented by the current object.
ASPOSECPP_SHARED_API ArrayPtr<uint8_t> System::Drawing::Drawing2D::GraphicsPath::get_PathTypes | ( | ) | const |
Returns an array that contains values that indicate the types of the points that make up a path represented by the current object.
|
protected |
Returns an array that contains values that indicate the types of the points that make up a path represented by the current object.
forceClose | True to complete each contur with Closes Verb, otherwise - false |
|
protected |
Returns an array that contains values that indicate the types of the points that make up a path represented by the current object.
ASPOSECPP_SHARED_API int System::Drawing::Drawing2D::GraphicsPath::get_PointCount | ( | ) | const |
Returns the number of points in the path represented by the current object.
ASPOSECPP_SHARED_API RectangleF System::Drawing::Drawing2D::GraphicsPath::GetBounds | ( | const MatrixPtr & | matrix = nullptr , |
const SharedPtr< Pen > & | pen = nullptr |
||
) | const |
Returns a RectangleF object that represents a rectangle that bounds the path represented by the current object when it is transformed with the specified matrix.
matrix | The transform matrix |
pen | A Pen to calculate the bounding rectangle. |
|
inline |
Returns a value which is a bitwise combination of Detail::FigureType values that indicates what types of figures are contained within the path represented by the current object.
ASPOSECPP_SHARED_API PointF System::Drawing::Drawing2D::GraphicsPath::GetLastPoint | ( | ) | const |
Returns a PointF object representing the last point in the path.
|
protected |
Returns a processed SkPath.
pen | A pen to use when drawing |
matrix | A matrix to use when drawing |
ASPOSECPP_SHARED_API bool System::Drawing::Drawing2D::GraphicsPath::IsOutlineVisible | ( | const PointF & | point, |
const SharedPtr< Pen > & | pen | ||
) |
Indicates whether the specified point is contained within (under) the outline of this GraphicsPath when drawn with the specified Pen. NOT EMPLEMENTED.
point | The point to test |
pen | The Pen to test |
ASPOSECPP_SHARED_API bool System::Drawing::Drawing2D::GraphicsPath::IsVisible | ( | const PointF & | point | ) |
Determines if the specified point is contained within the path represented by the current object.
point | The point to check |
ASPOSECPP_SHARED_API bool System::Drawing::Drawing2D::GraphicsPath::IsVisible | ( | float | x, |
float | y | ||
) |
Determines if the specified point is contained within the path represented by the current object.
x | The X coordiate of the point to check |
y | The Y coordiate of the point to check |
|
staticprotected |
Check if ConvertCurves should be applied to source.
source | Path to check. |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::Reset | ( | ) |
Empties the path by removing all points from it.
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::Reverse | ( | ) |
Reverses the order of points in the PathPoints array of this GraphicsPath.
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::set_FillMode | ( | FillMode | mode | ) |
Sets the fill mode of the current object.
mode | The value to set |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::SetMarkers | ( | ) |
NOT IMPLEMENTED.
NotImplementedException | Always |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::StartFigure | ( | ) |
Starts a new figure.
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::Transform | ( | const MatrixPtr & | matrix | ) |
Transforms the path represented by the current object by applying the specified transform matrix to it.
matrix | The transform matrix specifying the transformation |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::Transform | ( | const SkMatrix & | matrix | ) |
ASPOSECPP_SHARED_API void System::Drawing::Drawing2D::GraphicsPath::Widen | ( | const SharedPtr< Pen > & | pen | ) |
Replaces this path with an outline around the original path.
pen | A Pen object that specifies the width between the original and the new outlines |
|
protected |
A bitwise combination of Detail::FigureType values that indicates what types of figures are contained within the path represented by the current object.
|
protected |
Indicates whether a figure has been started.
|
protected |
The underlying SkPath object that contains the information about the path.