public class Ellipse extends ClosedShape
Represents a Ellipse Shape
in a Pdf document.
[C#] Pdf pdf1 = new Pdf(); Section sec1 = pdf1.Sections.Add(); Graph graph1 = new Graph(sec1,400,100); sec1.Paragraphs.Add(graph1); Aspose.Pdf.Generator.Ellipse ellipse1 = new Aspose.Pdf.Generator.Ellipse(graph1,50,10,100,50); graph1.Shapes.Add(ellipse1); pdf1.Save("d:/test/test.pdf"); [Visual Basic] Dim pdf1 As Pdf = New Pdf() Dim sec1 As Section = pdf1.Sections.Add() Dim graph1 As Graph = New Graph(sec1,400,100) sec1.Paragraphs.Add(graph1) Dim ellipse1 As Aspose.Pdf.Generator.Ellipse = New Aspose.Pdf.Generator.Ellipse(graph1,50,10,100,50) graph1.Shapes.Add(ellipse1) pdf1.Save("d:/test/test.pdf") [XML] <Pdf xmlns="Aspose.Pdf"> <Section> <Graph Width="400" Height="100"> <Ellipse Position="50 10 100 50" /> </Graph> </Section> </Pdf>
Constructor and Description |
---|
Ellipse()
Initializes a new instance of the
Ellipse class. |
Ellipse(float left,
float bottom,
float width,
float height)
Initializes a new instance of the
Ellipse class. |
Ellipse(Graph graph)
Initializes a new instance of the
Ellipse class. |
Ellipse(Graph graph,
float left,
float bottom,
float width,
float height)
Initializes a new instance of the
Ellipse class. |
Modifier and Type | Method and Description |
---|---|
float |
getBottom()
Gets or sets a float value that indicates the bottom position of the
ellipse.
|
float |
getHeight()
Gets or sets a float value that indicates the height of the ellipse.
|
float |
getLeft()
Gets or sets a float value that indicates the left position of the
ellipse.
|
float |
getWidth()
Gets or sets a float value that indicates the width of the ellipse.
|
void |
setBottom(float value) |
void |
setHeight(float value) |
void |
setLeft(float value) |
void |
setWidth(float value) |
getBlendInfo, getClipShapes, getEndFillArea, getGraph, getGraphicState, getGraphInfo, getID, getOpacity, getStrokeOpacity, isBoundingBoxRelative, isBoundingBoxRelative, setBlendInfo, setClipShapes, setEndFillArea, setGraph, setGraphInfo, setID, setOpacity, setStrokeOpacity
public Ellipse()
Initializes a new instance of the Ellipse
class.
public Ellipse(float left, float bottom, float width, float height)
Initializes a new instance of the Ellipse
class.
left
- The left position of the ellipse.bottom
- The bottom position of the ellipse.height
- The height of the ellipse.width
- The width of the ellipse.public Ellipse(Graph graph)
Initializes a new instance of the Ellipse
class.
graph
- The specified Graph
object. Graph
object. public Ellipse(Graph graph, float left, float bottom, float width, float height)
Initializes a new instance of the Ellipse
class.
graph
- The specified Graph
object.left
- The left position of the ellipse.bottom
- The bottom position of the ellipse.height
- The height of the ellipse.width
- The width of the ellipse. Graph
object.
public float getLeft()
Gets or sets a float value that indicates the left position of the ellipse.
public void setLeft(float value)
public float getBottom()
Gets or sets a float value that indicates the bottom position of the ellipse.
public void setBottom(float value)
public float getWidth()
Gets or sets a float value that indicates the width of the ellipse.
public void setWidth(float value)
public float getHeight()
Gets or sets a float value that indicates the height of the ellipse.
public void setHeight(float value)
Copyright © 2016 Aspose. All Rights Reserved.