Class GraphicsPath
اسم الفضاء : Aspose.Imaging تجميع: Aspose.Imaging.dll (25.4.0)
يمثل سلسلة من الخطوط والمنحنيات المرتبطة.هذه الفئة لا يمكن إرثها.
[JsonObject(MemberSerialization.OptIn)]
public sealed class GraphicsPath : ObjectWithBounds
Inheritance
object ← ObjectWithBounds ← GraphicsPath
الأعضاء الموروثين
ObjectWithBounds.GetBounds(Matrix) , ObjectWithBounds.GetBounds(Matrix, Pen) , ObjectWithBounds.Transform(Matrix) , ObjectWithBounds.Equals(object) , ObjectWithBounds.GetHashCode() , ObjectWithBounds.Bounds , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
هذه الأمثلة تستخدم فئة GraphicsPath و Graphics لإنشاء وتلاعب الأرقام على سطح الصورة. نموذج يخلق صورة جديدة (من نوع Tiff) ، ويطهر السطح ويسحب المسارات بمساعدة فئة GraphicsPath.
//Create an instance of FileStream
using (System.IO.FileStream stream = new System.IO.FileStream(@"C:\temp\output.tiff", System.IO.FileMode.Create))
{
//Create an instance of TiffOptions and set its various properties
Aspose.Imaging.ImageOptions.TiffOptions tiffOptions = new Aspose.Imaging.ImageOptions.TiffOptions(Imaging.FileFormats.Tiff.Enums.TiffExpectedFormat.Default);
//Set the source for the instance of ImageOptions
tiffOptions.Source = new Aspose.Imaging.Sources.StreamSource(stream);
//Create an instance of Image
using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Create(tiffOptions, 500, 500))
{
//Create and initialize an instance of Graphics class
Aspose.Imaging.Graphics graphics = new Aspose.Imaging.Graphics(image);
//Clear Graphics surface
graphics.Clear(Color.Wheat);
//Create an instance of GraphicsPath class
Aspose.Imaging.GraphicsPath graphicspath = new Aspose.Imaging.GraphicsPath();
//Create an instance of Figure class
Aspose.Imaging.Figure figure = new Aspose.Imaging.Figure();
//Add Shapes to Figure object
figure.AddShape(new Aspose.Imaging.Shapes.RectangleShape(new Aspose.Imaging.RectangleF(10f, 10f, 300f, 300f)));
figure.AddShape(new Aspose.Imaging.Shapes.EllipseShape(new Aspose.Imaging.RectangleF(50f, 50f, 300f, 300f)));
figure.AddShape(new Aspose.Imaging.Shapes.PieShape(new Aspose.Imaging.RectangleF(new Aspose.Imaging.PointF(250f, 250f), new Aspose.Imaging.SizeF(200f, 200f)), 0f, 45f));
//Add Figure object to GraphicsPath
graphicspath.AddFigure(figure);
//Draw path with Pen object of color Black
graphics.DrawPath(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Black, 2), graphicspath);
// save all changes.
image.Save();
}
}
Constructors
GraphicsPath()
يبدأ مثال جديد من فئة Aspose.Imaging.GraphicsPath.
[JsonConstructor]
public GraphicsPath()
Examples
هذه الأمثلة تستخدم فئة GraphicsPath و Graphics لإنشاء وتلاعب الأرقام على سطح الصورة. نموذج يخلق صورة جديدة (من نوع Tiff) ، ويطهر السطح ويسحب المسارات بمساعدة فئة GraphicsPath.
//Create an instance of FileStream
using (System.IO.FileStream stream = new System.IO.FileStream(@"C:\temp\output.tiff", System.IO.FileMode.Create))
{
//Create an instance of TiffOptions and set its various properties
Aspose.Imaging.ImageOptions.TiffOptions tiffOptions = new Aspose.Imaging.ImageOptions.TiffOptions(Imaging.FileFormats.Tiff.Enums.TiffExpectedFormat.Default);
//Set the source for the instance of ImageOptions
tiffOptions.Source = new Aspose.Imaging.Sources.StreamSource(stream);
//Create an instance of Image
using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Create(tiffOptions, 500, 500))
{
//Create and initialize an instance of Graphics class
Aspose.Imaging.Graphics graphics = new Aspose.Imaging.Graphics(image);
//Clear Graphics surface
graphics.Clear(Color.Wheat);
//Create an instance of GraphicsPath class
Aspose.Imaging.GraphicsPath graphicspath = new Aspose.Imaging.GraphicsPath();
//Create an instance of Figure class
Aspose.Imaging.Figure figure = new Aspose.Imaging.Figure();
//Add Shapes to Figure object
figure.AddShape(new Aspose.Imaging.Shapes.RectangleShape(new Aspose.Imaging.RectangleF(10f, 10f, 300f, 300f)));
figure.AddShape(new Aspose.Imaging.Shapes.EllipseShape(new Aspose.Imaging.RectangleF(50f, 50f, 300f, 300f)));
figure.AddShape(new Aspose.Imaging.Shapes.PieShape(new Aspose.Imaging.RectangleF(new Aspose.Imaging.PointF(250f, 250f), new Aspose.Imaging.SizeF(200f, 200f)), 0f, 45f));
//Add Figure object to GraphicsPath
graphicspath.AddFigure(figure);
//Draw path with Pen object of color Black
graphics.DrawPath(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Black, 2), graphicspath);
// save all changes.
image.Save();
}
}
GraphicsPath(Figure[])
يبدأ مثال جديد من فئة Aspose.Imaging.GraphicsPath.
public GraphicsPath(Figure[] figures)
Parameters
figures
Figure
[ ]
الأرقام التي يجب أن تبدأ من.
GraphicsPath(Figure[ ]فيلماود)
يبدأ مثال جديد من فئة Aspose.Imaging.GraphicsPath.
public GraphicsPath(Figure[] figures, FillMode fillMode)
Parameters
figures
Figure
[ ]
الأرقام التي يجب أن تبدأ من.
fillMode
FillMode
طريقة ملء
GraphicsPath(FillMode)
يبدأ مثال جديد من فئة Aspose.Imaging.GraphicsPath.
public GraphicsPath(FillMode fillMode)
Parameters
fillMode
FillMode
طريقة ملء
Properties
Bounds
يحصل أو يضع حدود الكائن.
public override RectangleF Bounds { get; }
قيمة الممتلكات
Figures
احصل على أرقام الطريق.
[JsonProperty]
public Figure[] Figures { get; }
قيمة الممتلكات
Figure [ ]
FillMode
يحصل أو يضع قائمة Aspose.Imaging.FillMode التي تحدد كيفية ملء الداخلية من الأشكال في هذا Aspose.Imaging.GraphicsPath.
public FillMode FillMode { get; set; }
قيمة الممتلكات
Methods
AddFigure(Figure)
إضافة رقم جديد.
public void AddFigure(Figure figure)
Parameters
figure
Figure
الرقم الذي أضيفه
Examples
هذه الأمثلة تستخدم فئة GraphicsPath و Graphics لإنشاء وتلاعب الأرقام على سطح الصورة. نموذج يخلق صورة جديدة (من نوع Tiff) ، ويطهر السطح ويسحب المسارات بمساعدة فئة GraphicsPath.
//Create an instance of FileStream
using (System.IO.FileStream stream = new System.IO.FileStream(@"C:\temp\output.tiff", System.IO.FileMode.Create))
{
//Create an instance of TiffOptions and set its various properties
Aspose.Imaging.ImageOptions.TiffOptions tiffOptions = new Aspose.Imaging.ImageOptions.TiffOptions(Imaging.FileFormats.Tiff.Enums.TiffExpectedFormat.Default);
//Set the source for the instance of ImageOptions
tiffOptions.Source = new Aspose.Imaging.Sources.StreamSource(stream);
//Create an instance of Image
using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Create(tiffOptions, 500, 500))
{
//Create and initialize an instance of Graphics class
Aspose.Imaging.Graphics graphics = new Aspose.Imaging.Graphics(image);
//Clear Graphics surface
graphics.Clear(Color.Wheat);
//Create an instance of GraphicsPath class
Aspose.Imaging.GraphicsPath graphicspath = new Aspose.Imaging.GraphicsPath();
//Create an instance of Figure class
Aspose.Imaging.Figure figure = new Aspose.Imaging.Figure();
//Add Shapes to Figure object
figure.AddShape(new Aspose.Imaging.Shapes.RectangleShape(new Aspose.Imaging.RectangleF(10f, 10f, 300f, 300f)));
figure.AddShape(new Aspose.Imaging.Shapes.EllipseShape(new Aspose.Imaging.RectangleF(50f, 50f, 300f, 300f)));
figure.AddShape(new Aspose.Imaging.Shapes.PieShape(new Aspose.Imaging.RectangleF(new Aspose.Imaging.PointF(250f, 250f), new Aspose.Imaging.SizeF(200f, 200f)), 0f, 45f));
//Add Figure object to GraphicsPath
graphicspath.AddFigure(figure);
//Draw path with Pen object of color Black
graphics.DrawPath(new Aspose.Imaging.Pen(Aspose.Imaging.Color.Black, 2), graphicspath);
// save all changes.
image.Save();
}
}
AddFigures(Figure[])
إضافة أرقام جديدة
public void AddFigures(Figure[] figures)
Parameters
figures
Figure
[ ]
الأرقام التي يجب إضافتها
Examples
هذا المثال يخلق صورة جديدة ويسحب مجموعة متنوعة من الأشكال باستخدام الأرقام والرسومات على سطح الصورة
//Creates an instance of BmpOptions and set its various properties
Aspose.Imaging.ImageOptions.BmpOptions bmpOptions = new Aspose.Imaging.ImageOptions.BmpOptions();
bmpOptions.BitsPerPixel = 24;
//Create an instance of FileCreateSource and assign it as Source for the instance of BmpOptions
//Second Boolean parameter determines if the file to be created IsTemporal or not
bmpOptions.Source = new Aspose.Imaging.Sources.FileCreateSource(@"c:\temp\output.bmp", false);
//Create an instance of Image
using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Create(bmpOptions, 500, 500))
{
//Create and initialize an instance of Graphics class
Aspose.Imaging.Graphics graphics = new Aspose.Imaging.Graphics(image);
//Clear Graphics surface
graphics.Clear(Color.Wheat);
//Create an instance of GraphicsPath class
Aspose.Imaging.GraphicsPath graphicspath = new Aspose.Imaging.GraphicsPath();
//Create an instance of Figure class
Aspose.Imaging.Figure figure1 = new Aspose.Imaging.Figure();
//Add Shape to Figure object
figure1.AddShape(new Aspose.Imaging.Shapes.EllipseShape(new RectangleF(50, 50, 300, 300)));
figure1.AddShape(new Aspose.Imaging.Shapes.PieShape(new Rectangle(new Point(110, 110), new Size(200, 200)), 0, 90));
//Create an instance of Figure class
Aspose.Imaging.Figure figure2 = new Aspose.Imaging.Figure();
//Add Shape to Figure object
figure2.AddShape(new Aspose.Imaging.Shapes.ArcShape(new Aspose.Imaging.RectangleF(10, 10, 300, 300), 0, 45));
figure2.AddShape(new Aspose.Imaging.Shapes.PolygonShape(new[] { new Aspose.Imaging.PointF(150, 10), new Aspose.Imaging.PointF(150, 200), new Aspose.Imaging.PointF(250, 300), new Aspose.Imaging.PointF(350, 400) }, true));
figure2.AddShape(new Aspose.Imaging.Shapes.RectangleShape(new Aspose.Imaging.RectangleF(new Aspose.Imaging.Point(250, 250), new Aspose.Imaging.Size(200, 200))));
//Add Figure object to GraphicsPath
graphicspath.AddFigures(new[] { figure1, figure2 });
//Draw path with Pen object of color Black
graphics.DrawPath(new Pen(Aspose.Imaging.Color.Black, 2), graphicspath);
// save all changes.
image.Save();
}
AddPath(GraphicsPath)
إضافة Aspose.Imaging.GraphicsPath المحدد إلى هذا المسار.
public void AddPath(GraphicsPath addingPath)
Parameters
addingPath
GraphicsPath
The Aspose.Imaging.GraphicsPath لإضافة.
AddPath(الرسوم البيانية, bool)
إضافة Aspose.Imaging.GraphicsPath المحدد إلى هذا المسار.
public void AddPath(GraphicsPath addingPath, bool connect)
Parameters
addingPath
GraphicsPath
The Aspose.Imaging.GraphicsPath لإضافة.
connect
bool
قيمة بولية تحدد ما إذا كان الرقم الأول في المسار المضافة هو جزء من الرقم الأخير في هذا المسار.قيمة الحقيقة تحدد أن الرقم الأول في المسار المضافة هو جزء من الرقم الأخير في هذا المسار.قيمة الكاذبة تحدد أن الرقم الأول في المسار المضافة منفصل عن الرقم الأخير في هذا المسار.
DeepClone()
أداء عميق من هذا المسار الرسومات.
public GraphicsPath DeepClone()
Returns
كليون عميق من مسار الرسومات.
Equals(الموضوع)
تحقق مما إذا كانت الأشياء متساوية.
public override bool Equals(object obj)
Parameters
obj
object
الموضوع الآخر .
Returns
نتيجة مقارنة المساواة.
Flatten()
تحويل كل منحنى في هذا المسار إلى سلسلة من أجزاء الخط المرتبطة.
public void Flatten()
Flatten(Matrix)
تطبيق التحويل المحدد ثم تحويل كل منحنى في هذا Aspose.Imaging.GraphicsPath إلى سلسلة من أجزاء الخط متصلة.
public void Flatten(Matrix matrix)
Parameters
matrix
Matrix
Aspose.Imaging.Matrix من خلالها لتحويل هذا Aspose.Imaging.GraphicsPath قبل التشويش.
Flatten(الماتريكس، الملاحة)
تحويل كل منحنى في هذا Aspose.Imaging.GraphicsPath إلى سلسلة من أجزاء الخط متصلة.
public void Flatten(Matrix matrix, float flatness)
Parameters
matrix
Matrix
Aspose.Imaging.Matrix من خلالها لتحويل هذا Aspose.Imaging.GraphicsPath قبل التشويش.
flatness
float
يحدد الحد الأقصى للخطأ المسموح به بين المنحنى ومقارنته المسطحة.قيمة 0.25 هي الافتراضية.تقليل قيمة المسطحة سوف يزيد عدد أجزاء الخط في المقارنة.
GetBounds(Matrix)
يحصل على حدود الكائن.
public override RectangleF GetBounds(Matrix matrix)
Parameters
matrix
Matrix
سيتم حساب المصفوفة التي سيتم تطبيقها قبل الحدود.
Returns
حدود الكائن المقدر.
GetBounds(ماتريكس، قلم)
يحصل على حدود الكائن.
public override RectangleF GetBounds(Matrix matrix, Pen pen)
Parameters
matrix
Matrix
سيتم حساب المصفوفة التي سيتم تطبيقها قبل الحدود.
pen
Pen
القلم للاستخدام للكائن.هذا يمكن أن يؤثر على حجم الحدود الكائن.
Returns
حدود الكائن المقدر.
GetHashCode()
احصل على رمز الهاش من الكائن الحالي.
public override int GetHashCode()
Returns
كود الهاش .
IsOutlineVisible(السفينة، السفينة، القلم)
إشارة إلى ما إذا كان النقطة المحددة موجودة داخل (أدناه) النتيجة من هذا Aspose.Imaging.GraphicsPath عند سحبها مع Aspose.Imaging.Pen المحددة.
public bool IsOutlineVisible(float x, float y, Pen pen)
Parameters
x
float
منسقة X من النقطة التي يجب اختبارها
y
float
منسقة النقطة التي يجب اختبارها
pen
Pen
أضف تعليق حول كيفية اختبار.
Returns
هذه الطريقة تعود حقيقية إذا كان النقطة المحددة موجودة داخل النقطة المحددة من هذا Aspose.Imaging.GraphicsPath عند سحب مع Aspose.Imaging.Pen المحددة؛ وإلا، وهمية.
IsOutlineVisible(نقطة ، قلم)
إشارة إلى ما إذا كان النقطة المحددة موجودة داخل (أدناه) النتيجة من هذا Aspose.Imaging.GraphicsPath عند سحبها مع Aspose.Imaging.Pen المحددة.
public bool IsOutlineVisible(PointF point, Pen pen)
Parameters
point
PointF
Aspose.Imaging.PointF الذي يحدد الموقع الذي يجب اختباره.
pen
Pen
أضف تعليق حول كيفية اختبار.
Returns
هذه الطريقة تعود حقيقية إذا كان النقطة المحددة موجودة داخل النقطة المحددة من هذا Aspose.Imaging.GraphicsPath عند سحب مع Aspose.Imaging.Pen المحددة؛ وإلا، وهمية.
IsOutlineVisible(السفينة، السفينة، القلم، الرسومات)
إشارة إلى ما إذا كان النقطة المحددة موجودة داخل (أدناه) النتيجة من هذا Aspose.Imaging.GraphicsPath عند سحب مع Aspose.Imaging.Pen المحددة واستخدام Aspose.Imaging.Graphics المحددة.
public bool IsOutlineVisible(float x, float y, Pen pen, Graphics graphics)
Parameters
x
float
منسقة X من النقطة التي يجب اختبارها
y
float
منسقة النقطة التي يجب اختبارها
pen
Pen
أضف تعليق حول كيفية اختبار.
graphics
Graphics
The Aspose.Imaging.Graphics التي اختبار الرؤية.
Returns
هذه الطريقة تعود حقيقية إذا كانت النقطة المحددة موجودة داخل (أدناه) النتيجة من هذا Aspose.Imaging.GraphicsPath كما تم سحبها مع Aspose.Imaging.Pen المحددة؛ وإلا، وهمية.
IsOutlineVisible(PointF، القلم، الرسومات)
إشارة إلى ما إذا كان النقطة المحددة موجودة داخل (أدناه) النتيجة من هذا Aspose.Imaging.GraphicsPath عند سحب مع Aspose.Imaging.Pen المحددة واستخدام Aspose.Imaging.Graphics المحددة.
public bool IsOutlineVisible(PointF pt, Pen pen, Graphics graphics)
Parameters
pt
PointF
Aspose.Imaging.PointF الذي يحدد الموقع الذي يجب اختباره.
pen
Pen
أضف تعليق حول كيفية اختبار.
graphics
Graphics
The Aspose.Imaging.Graphics التي اختبار الرؤية.
Returns
هذه الطريقة تعود حقيقية إذا كانت النقطة المحددة موجودة داخل (أدناه) النتيجة من هذا Aspose.Imaging.GraphicsPath كما تم سحبها مع Aspose.Imaging.Pen المحددة؛ وإلا، وهمية.
IsOutlineVisible(إنت، إنت، قلم)
إشارة إلى ما إذا كان النقطة المحددة موجودة داخل (أدناه) النتيجة من هذا Aspose.Imaging.GraphicsPath عند سحبها مع Aspose.Imaging.Pen المحددة.
public bool IsOutlineVisible(int x, int y, Pen pen)
Parameters
x
int
منسقة X من النقطة التي يجب اختبارها
y
int
منسقة النقطة التي يجب اختبارها
pen
Pen
أضف تعليق حول كيفية اختبار.
Returns
هذه الطريقة تعود حقيقية إذا كان النقطة المحددة موجودة داخل النقطة المحددة من هذا Aspose.Imaging.GraphicsPath عند سحب مع Aspose.Imaging.Pen المحددة؛ وإلا، وهمية.
IsOutlineVisible(نقطة ، قلم)
إشارة إلى ما إذا كان النقطة المحددة موجودة داخل (أدناه) النتيجة من هذا Aspose.Imaging.GraphicsPath عند سحبها مع Aspose.Imaging.Pen المحددة.
public bool IsOutlineVisible(Point point, Pen pen)
Parameters
point
Point
نقطة Aspose.Imaging.Point التي تحدد الموقع الذي يجب اختباره.
pen
Pen
أضف تعليق حول كيفية اختبار.
Returns
هذه الطريقة تعود حقيقية إذا كان النقطة المحددة موجودة داخل النقطة المحددة من هذا Aspose.Imaging.GraphicsPath عند سحب مع Aspose.Imaging.Pen المحددة؛ وإلا، وهمية.
IsOutlineVisible(إنت، إنت، قلم، الرسومات)
إشارة إلى ما إذا كان النقطة المحددة موجودة داخل (أدناه) النتيجة من هذا Aspose.Imaging.GraphicsPath عند سحب مع Aspose.Imaging.Pen المحددة واستخدام Aspose.Imaging.Graphics المحددة.
public bool IsOutlineVisible(int x, int y, Pen pen, Graphics graphics)
Parameters
x
int
منسقة X من النقطة التي يجب اختبارها
y
int
منسقة النقطة التي يجب اختبارها
pen
Pen
أضف تعليق حول كيفية اختبار.
graphics
Graphics
The Aspose.Imaging.Graphics التي اختبار الرؤية.
Returns
هذه الطريقة تعود حقيقية إذا كان النقطة المحددة موجودة داخل النقطة المحددة من هذا Aspose.Imaging.GraphicsPath كما تم سحبها مع Aspose.Imaging.Pen المحددة؛ وإلا، وهمية.
IsOutlineVisible(نقطة، قلم، الرسومات)
إشارة إلى ما إذا كان النقطة المحددة موجودة داخل (أدناه) النتيجة من هذا Aspose.Imaging.GraphicsPath عند سحب مع Aspose.Imaging.Pen المحددة واستخدام Aspose.Imaging.Graphics المحددة.
public bool IsOutlineVisible(Point pt, Pen pen, Graphics graphics)
Parameters
pt
Point
نقطة Aspose.Imaging.Point التي تحدد الموقع الذي يجب اختباره.
pen
Pen
أضف تعليق حول كيفية اختبار.
graphics
Graphics
The Aspose.Imaging.Graphics التي اختبار الرؤية.
Returns
هذه الطريقة تعود حقيقية إذا كان النقطة المحددة موجودة داخل النقطة المحددة من هذا Aspose.Imaging.GraphicsPath كما تم سحبها مع Aspose.Imaging.Pen المحددة؛ وإلا، وهمية.
IsVisible(السفينة، السفينة)
يظهر ما إذا كان النقطة المحددة موجودة في هذا Aspose.Imaging.GraphicsPath.
public bool IsVisible(float x, float y)
Parameters
x
float
منسقة X من النقطة التي يجب اختبارها
y
float
منسقة النقطة التي يجب اختبارها
Returns
هذه الطريقة تعود حقيقية إذا كانت النقطة المحددة موجودة في هذا Aspose.Imaging.GraphicsPath؛ وإلا، وهمية.
IsVisible(نقطة)
يظهر ما إذا كان النقطة المحددة موجودة في هذا Aspose.Imaging.GraphicsPath.
public bool IsVisible(PointF point)
Parameters
point
PointF
Aspose.Imaging.PointF الذي يمثل النقطة التي يجب اختبارها.
Returns
هذه الطريقة تعود حقيقية إذا كانت النقطة المحددة موجودة في هذا Aspose.Imaging.GraphicsPath؛ وإلا، وهمية.
IsVisible(إنت، إنت)
يظهر ما إذا كان النقطة المحددة موجودة في هذا Aspose.Imaging.GraphicsPath.
public bool IsVisible(int x, int y)
Parameters
x
int
منسقة X من النقطة التي يجب اختبارها
y
int
منسقة النقطة التي يجب اختبارها
Returns
هذه الطريقة تعود حقيقية إذا كانت النقطة المحددة موجودة في هذا Aspose.Imaging.GraphicsPath؛ وإلا، وهمية.
IsVisible(Point)
يظهر ما إذا كان النقطة المحددة موجودة في هذا Aspose.Imaging.GraphicsPath.
public bool IsVisible(Point point)
Parameters
point
Point
A Aspose.Imaging.Point الذي يمثل النقطة التي يجب اختبارها.
Returns
هذه الطريقة تعود حقيقية إذا كانت النقطة المحددة موجودة في هذا Aspose.Imaging.GraphicsPath؛ وإلا، وهمية.
IsVisible(السفينة، السفينة، الرسومات)
يظهر ما إذا كان النقطة المحددة موجودة داخل هذا Aspose.Imaging.GraphicsPath في منطقة مقطع مرئي من Aspose.Imaging.Graphics المحددة.
public bool IsVisible(float x, float y, Graphics graphics)
Parameters
x
float
منسقة X من النقطة التي يجب اختبارها
y
float
منسقة النقطة التي يجب اختبارها
graphics
Graphics
The Aspose.Imaging.Graphics التي اختبار الرؤية.
Returns
هذه الطريقة تعود حقيقية إذا كانت النقطة المحددة موجودة في هذا Aspose.Imaging.GraphicsPath؛ وإلا، وهمية.
IsVisible(نقطة، الرسومات)
يظهر ما إذا كان النقطة المحددة موجودة في هذا Aspose.Imaging.GraphicsPath.
public bool IsVisible(PointF pt, Graphics graphics)
Parameters
pt
PointF
Aspose.Imaging.PointF الذي يمثل النقطة التي يجب اختبارها.
graphics
Graphics
The Aspose.Imaging.Graphics التي اختبار الرؤية.
Returns
هذه الطريقة تعود صحيحة إذا كانت النقطة المحددة موجودة في هذا؛ وإلا، وهمية.
IsVisible(إنت، إنت، الرسومات)
يحدد ما إذا كان النقطة المحددة موجودة داخل هذا Aspose.Imaging.GraphicsPath، باستخدام Aspose.Imaging.Graphics المحددة.
public bool IsVisible(int x, int y, Graphics graphics)
Parameters
x
int
منسقة X من النقطة التي يجب اختبارها
y
int
منسقة النقطة التي يجب اختبارها
graphics
Graphics
The Aspose.Imaging.Graphics التي اختبار الرؤية.
Returns
هذه الطريقة تعود حقيقية إذا كانت النقطة المحددة موجودة في هذا Aspose.Imaging.GraphicsPath؛ وإلا، وهمية.
IsVisible(نقطة، الرسومات)
يظهر ما إذا كان النقطة المحددة موجودة في هذا Aspose.Imaging.GraphicsPath.
public bool IsVisible(Point pt, Graphics graphics)
Parameters
pt
Point
A Aspose.Imaging.Point الذي يمثل النقطة التي يجب اختبارها.
graphics
Graphics
The Aspose.Imaging.Graphics التي اختبار الرؤية.
Returns
هذه الطريقة تعود حقيقية إذا كانت النقطة المحددة موجودة في هذا Aspose.Imaging.GraphicsPath؛ وإلا، وهمية.
RemoveFigure(Figure)
إزالة رقم واحد.
public void RemoveFigure(Figure figure)
Parameters
figure
Figure
الرقم الذي يجب إزالته.
RemoveFigures(Figure[])
إزالة الأرقام
public void RemoveFigures(Figure[] figures)
Parameters
figures
Figure
[ ]
الأرقام التي يجب إزالتها.
Reset()
يضع مسار الرسومات ويضع Aspose.Imaging.FillMode إلى Aspose.Imaging.FillMode.Alternate.
public void Reset()
Reverse()
يعكس ترتيب الأرقام والأشكال والنقاط في كل شكل من أشكال هذا Aspose.Imaging.GraphicsPath.
public void Reverse()
Transform(Matrix)
تطبق التحول المحدد على الشكل.
public override void Transform(Matrix transform)
Parameters
transform
Matrix
التحول الذي ينبغي تطبيقه.
Warp(نقطة[ ], RectangleF)
يطبق تحويل الورب ، الذي يحدده مستطيل وموازية ، على هذا Aspose.Imaging.GraphicsPath.
public void Warp(PointF[] destPoints, RectangleF srcRect)
Parameters
destPoints
PointF
[ ]
سلسلة من الهياكل Aspose.Imaging.PointF التي تحدد الموازية التي يتم تحويل المستطيل المحدد بواسطة srcRect’. يمكن أن تحتوي الموازية على ثلاثة أو أربعة عناصر.
srcRect
RectangleF
Aspose.Imaging.RectangleF الذي يمثل المستطيل الذي يتم تحويله إلى الموازين المحددة بواسطة destPoints'.
Warp(نقطة[ ], RectangleF , ماتريكس)
يطبق تحويل الورب ، الذي يحدده مستطيل وموازية ، على هذا Aspose.Imaging.GraphicsPath.
public void Warp(PointF[] destPoints, RectangleF srcRect, Matrix matrix)
Parameters
destPoints
PointF
[ ]
سلسلة من الهياكل Aspose.Imaging.PointF التي تحدد الموازية التي يتم تحويل المستطيل المحدد بواسطة srcRect’. يمكن أن تحتوي الموازية على ثلاثة أو أربعة عناصر.
srcRect
RectangleF
Aspose.Imaging.RectangleF الذي يمثل المستطيل الذي يتم تحويله إلى الموازين المحددة بواسطة destPoints'.
matrix
Matrix
Aspose.Imaging.Matrix الذي يحدد التحول الجيومترية لتطبيقها على المسار.
Warp(نقطة[ ]، RectangleF ، Matrix ، WarpMode)
يطبق تحويل الورب ، الذي يحدده مستطيل وموازية ، على هذا Aspose.Imaging.GraphicsPath.
public void Warp(PointF[] destPoints, RectangleF srcRect, Matrix matrix, WarpMode warpMode)
Parameters
destPoints
PointF
[ ]
سلسلة من الهياكل Aspose.Imaging.PointF التي تحدد الموازية التي يتم تحويل المستطيل المحدد بواسطة srcRect’. يمكن أن تحتوي الموازية على ثلاثة أو أربعة عناصر.
srcRect
RectangleF
Aspose.Imaging.RectangleF الذي يمثل المستطيل الذي يتم تحويله إلى الموازين المحددة بواسطة destPoints'.
matrix
Matrix
Aspose.Imaging.Matrix الذي يحدد التحول الجيومترية لتطبيقها على المسار.
warpMode
WarpMode
قائمة Aspose.Imaging.WarpMode التي تحدد ما إذا كانت هذه العملية Warp تستخدم المنظور أو الوضع المزدوج.
Warp(نقطة[ ]، RectangleF ، Matrix ، WarpMode ، Float)
يطبق تحويل الورب ، الذي يحدده مستطيل وموازية ، على هذا Aspose.Imaging.GraphicsPath.
public void Warp(PointF[] destPoints, RectangleF srcRect, Matrix matrix, WarpMode warpMode, float flatness)
Parameters
destPoints
PointF
[ ]
سلسلة من الهياكل Aspose.Imaging.PointF التي تحدد الموازية التي يتم تحويل المستطيل المحدد بواسطة srcRect’. يمكن أن تحتوي الموازية على ثلاثة أو أربعة عناصر.
srcRect
RectangleF
Aspose.Imaging.RectangleF الذي يمثل المستطيل الذي يتم تحويله إلى الموازين المحددة بواسطة destPoints'.
matrix
Matrix
Aspose.Imaging.Matrix الذي يحدد التحول الجيومترية لتطبيقها على المسار.
warpMode
WarpMode
قائمة Aspose.Imaging.WarpMode التي تحدد ما إذا كانت هذه العملية Warp تستخدم المنظور أو الوضع المزدوج.
flatness
float
قيمة من 0 إلى 1 التي تحدد مدى مسطح المسار الناتج.للمزيد من المعلومات، انظر أساليب Aspose.Imaging.GraphicsPath.Flatten.
Widen(Pen)
أضف خطًا إضافيًا إلى المسار.
public void Widen(Pen pen)
Parameters
pen
Pen
إن Aspose.Imaging.Pen الذي يحدد العرض بين المسار الأصلي والمسار الجديد يخلق هذه الطريقة.
Widen(القلم، الماتريكس)
إضافة ملخص إضافي إلى Aspose.Imaging.GraphicsPath.
public void Widen(Pen pen, Matrix matrix)
Parameters
pen
Pen
إن Aspose.Imaging.Pen الذي يحدد العرض بين المسار الأصلي والمسار الجديد يخلق هذه الطريقة.
matrix
Matrix
Aspose.Imaging.Matrix الذي يحدد التحول لتطبيق على المسار قبل التوسع.
Widen(القلم، الماتريكس، السفينة)
يستبدل هذا Aspose.Imaging.GraphicsPath بالدوائر التي تغطي المنطقة التي يتم ملءها عندما يتم سحب هذا المسار بواسطة القلم المحدد.
public void Widen(Pen pen, Matrix matrix, float flatness)
Parameters
pen
Pen
إن Aspose.Imaging.Pen الذي يحدد العرض بين المسار الأصلي والمسار الجديد يخلق هذه الطريقة.
matrix
Matrix
Aspose.Imaging.Matrix الذي يحدد التحول لتطبيق على المسار قبل التوسع.
flatness
float
قيمة تحدد مسطحة المنحنيات.