Figure Class |
Namespace: Aspose.PSD
The Figure type exposes the following members.
Name | Description | |
---|---|---|
![]() | Figure | Initializes a new instance of the Figure class |
Name | Description | |
---|---|---|
![]() | Bounds |
Gets or sets the object's bounds.
(Overrides ObjectWithBoundsBounds.) |
![]() | IsClosed |
Gets or sets a value indicating whether this figure is closed. A closed figure will make a difference only in case where
the first and the last figure's shapes are continuous shapes. In such case the first point of the first shape will be
connected by a straight line from the last point of the last shape.
|
![]() | Segments |
Gets the whole figure segments.
|
![]() | Shapes |
Gets the figure shapes.
|
Name | Description | |
---|---|---|
![]() ![]() | AddShape |
Adds a shape to the figure.
|
![]() ![]() | AddShapes |
Adds a range of shapes to the figure.
|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetBounds(Matrix) |
Gets the object's bounds.
(Overrides ObjectWithBoundsGetBounds(Matrix).) |
![]() | GetBounds(Matrix, Pen) |
Gets the object's bounds.
(Overrides ObjectWithBoundsGetBounds(Matrix, Pen).) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | RemoveShape |
Removes a shape from the figure.
|
![]() | RemoveShapes |
Removes a range of shapes from the figure.
|
![]() | Reverse |
Reverses this figure shapes order and shapes point order.
|
![]() | ToString | (Inherited from Object.) |
![]() | Transform |
Applies the specified transformation to the shape.
(Overrides ObjectWithBoundsTransform(Matrix).) |
[C#] //Create an instance of Image using (Aspose.PSD.Image image = new Aspose.PSD.FileFormats.Psd.PsdImage(500, 500)) { //Create and initialize an instance of Graphics class Aspose.PSD.Graphics graphics = new Aspose.PSD.Graphics(image); //Clear Graphics surface graphics.Clear(Color.Wheat); //Create an instance of GraphicsPath class Aspose.PSD.GraphicsPath graphicspath = new Aspose.PSD.GraphicsPath(); //Create an instance of Figure class Aspose.PSD.Figure figure = new Aspose.PSD.Figure(); //Add Shapes to Figure object figure.AddShape(new Aspose.PSD.Shapes.RectangleShape(new RectangleF(10, 10, 300, 300))); figure.AddShape(new Aspose.PSD.Shapes.EllipseShape(new RectangleF(50, 50, 300, 300))); figure.AddShape(new Aspose.PSD.Shapes.PieShape(new Rectangle(new Point(250, 250), new Size(200, 200)), 0, 45)); //Add Figure object to GraphicsPath graphicspath.AddFigure(figure); //Draw path with Pen object of color Black graphics.DrawPath(new Pen(Aspose.PSD.Color.Black, 2), graphicspath); //Create an instance of TiffOptions and set its various properties Aspose.PSD.ImageOptions.TiffOptions tiffOptions = new Aspose.PSD.ImageOptions.TiffOptions(Aspose.PSD.FileFormats.Tiff.Enums.TiffExpectedFormat.Default); // save all changes. image.Save("C:\\temp\\output.tiff", tiffOptions); }