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( ), FillMode)
启动了 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
这个例子创造了一个新的图像,并在图像表面上使用图像和图形Path引导各种形状。
//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
测试点的 y 协调。
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
测试点的 y 协调。
pen
Pen
想想想想想想想想想想想想
graphics
Graphics
Aspose.Imaging.Graphics 用于测试可见性。
Returns
此方法返回真实的,如果指定的点是包含在(下)这个 Aspose.Imaging.GraphicsPath 如引用与指定的 Aspose.Imaging.Pen; 否则,虚假。
IsOutlineVisible(PointF, Pen, 图形)
指示所指定的点是否包含在(下)本 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
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
测试点的 y 协调。
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(int , int , 笔 , 图形)
指示所指定的点是否包含在(下)本 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
测试点的 y 协调。
pen
Pen
想想想想想想想想想想想想
graphics
Graphics
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
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
测试点的 y 协调。
Returns
此方法返回真相,如果指定的点在本 Aspose.Imaging.GraphicsPath 中包含;否则,虚假。
IsVisible(点数)
表明所指定的点是否包含在此 Aspose.Imaging.GraphicsPath 中。
public bool IsVisible(PointF point)
Parameters
point
PointF
一个 Aspose.Imaging.PointF 代表测试的点。
Returns
此方法返回真相,如果指定的点在本 Aspose.Imaging.GraphicsPath 中包含;否则,虚假。
IsVisible(int , int , int)
表明所指定的点是否包含在此 Aspose.Imaging.GraphicsPath 中。
public bool IsVisible(int x, int y)
Parameters
x
int
测试点的 x 协调。
y
int
测试点的 y 协调。
Returns
此方法返回真相,如果指定的点在本 Aspose.Imaging.GraphicsPath 中包含;否则,虚假。
IsVisible(Point)
表明所指定的点是否包含在此 Aspose.Imaging.GraphicsPath 中。
public bool IsVisible(Point point)
Parameters
point
Point
一个 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
测试点的 y 协调。
graphics
Graphics
Aspose.Imaging.Graphics 用于测试可见性。
Returns
此方法返回真相,如果指定的点在本 Aspose.Imaging.GraphicsPath 中包含;否则,虚假。
IsVisible(PointF, 图形)
表明所指定的点是否包含在此 Aspose.Imaging.GraphicsPath 中。
public bool IsVisible(PointF pt, Graphics graphics)
Parameters
pt
PointF
一个 Aspose.Imaging.PointF 代表测试的点。
graphics
Graphics
Aspose.Imaging.Graphics 用于测试可见性。
Returns
此方法如果指定的点在其中包含,则返回真实;否则,假。
IsVisible(int , int , 图形)
指示指定的点是否包含在本 Aspose.Imaging.GraphicsPath 中,使用指定的 Aspose.Imaging.Graphics。
public bool IsVisible(int x, int y, Graphics graphics)
Parameters
x
int
测试点的 x 协调。
y
int
测试点的 y 协调。
graphics
Graphics
Aspose.Imaging.Graphics 用于测试可见性。
Returns
此方法返回真相,如果指定的点在本 Aspose.Imaging.GraphicsPath 中包含;否则,虚假。
IsVisible(点,图形)
表明所指定的点是否包含在此 Aspose.Imaging.GraphicsPath 中。
public bool IsVisible(Point pt, Graphics graphics)
Parameters
pt
Point
一个 Aspose.Imaging.Point 代表要测试的点。
graphics
Graphics
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(点数( ), 直角)
适用于这个 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, 浮动)
适用于这个 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
一个值,指定曲线的平度。