public class EmfPlusDrawArc extends EmfPlusDrawingRecordType
The EmfPlusDrawArc record specifies drawing the arc of an ellipse.
Constructor and Description |
---|
EmfPlusDrawArc(EmfPlusRecord source)
Initializes a new instance of the
EmfPlusDrawArc class. |
Modifier and Type | Method and Description |
---|---|
int |
getDataSize()
Gets or sets the size of the data.
|
RectangleF |
getRectangleData()
Gets or sets the rectangle data
Either an EmfPlusRect or EmfPlusRectF object that defines the bounding box
of the ellipse that is collinear with the arc.
|
boolean |
getRectFloat()
Gets or sets a value indicating whether the data contains
EmfPlusRectF or EmfPlusRect records
This bit indicates whether the data in the RectData field is compressed.
|
int |
getSize()
Gets or sets the size.
|
float |
getStartAngle()
Gets or sets the start angle
A 32-bit non-negative floating-point value that specifies the angle between
the x-axis and the starting point of the arc.
|
float |
getSweepAngle()
Gets or sets the sweep angle
A 32-bit floating-point value that specifies the extent of the arc to draw,
as an angle in degrees measured from the starting point defined by the
StartAngle value.
|
void |
setDataSize(int value)
Gets or sets the size of the data.
|
void |
setRectangleData(RectangleF value)
Gets or sets the rectangle data
Either an EmfPlusRect or EmfPlusRectF object that defines the bounding box
of the ellipse that is collinear with the arc.
|
void |
setRectFloat(boolean value)
Gets or sets a value indicating whether the data contains
EmfPlusRectF or EmfPlusRect records
This bit indicates whether the data in the RectData field is compressed.
|
void |
setSize(int value)
Gets or sets the size.
|
void |
setStartAngle(float value)
Gets or sets the start angle
A 32-bit non-negative floating-point value that specifies the angle between
the x-axis and the starting point of the arc.
|
void |
setSweepAngle(float value)
Gets or sets the sweep angle
A 32-bit floating-point value that specifies the extent of the arc to draw,
as an angle in degrees measured from the starting point defined by the
StartAngle value.
|
getFirstFlagByte_internalized, getFlagBit_internalized, getFlags, getLastFlagByte_internalized, getObjectId_internalized, getType, setFirstFlagByte_internalized, setFlagBit_internalized, setFlags, setLastFlagByte_internalized, setObjectId_internalized, setType_internalized
deepClone_internalized
public EmfPlusDrawArc(EmfPlusRecord source)
Initializes a new instance of the EmfPlusDrawArc
class.
source
- The source.public int getDataSize()
Gets or sets the size of the data. A 32-bit unsigned integer that specifies the 32-bit-aligned number of bytes of record-specific data that follows. For this record type, the value MUST be one of the following: 0x00000010 If the C bit is set in the Flags field. 0x00000018 If the C bit is clear in the Flags field.
getDataSize
in class EmfPlusRecord
com.aspose.ms.System.IO.InvalidDataException
- Invalid value
Value:
The size of the data.public void setDataSize(int value)
Gets or sets the size of the data. A 32-bit unsigned integer that specifies the 32-bit-aligned number of bytes of record-specific data that follows. For this record type, the value MUST be one of the following: 0x00000010 If the C bit is set in the Flags field. 0x00000018 If the C bit is clear in the Flags field.
setDataSize
in class EmfPlusRecord
com.aspose.ms.System.IO.InvalidDataException
- Invalid value
Value:
The size of the data.public boolean getRectFloat()
Gets or sets a value indicating whether the data contains EmfPlusRectF or EmfPlusRect records This bit indicates whether the data in the RectData field is compressed. If set, RectData contains an EmfPlusRect object (section 2.2.2.38). If clear, RectData contains an EmfPlusRectF object (section 2.2.2.39).
Value:true
if float; otherwise, false
.public void setRectFloat(boolean value)
Gets or sets a value indicating whether the data contains EmfPlusRectF or EmfPlusRect records This bit indicates whether the data in the RectData field is compressed. If set, RectData contains an EmfPlusRect object (section 2.2.2.38). If clear, RectData contains an EmfPlusRectF object (section 2.2.2.39).
Value:true
if float; otherwise, false
.public int getSize()
Gets or sets the size. A 32-bit unsigned integer that specifies the 32-bit-aligned number of bytes in the entire record, including the 12-byte record header and record-specific data. For this record type, the value MUST be one of the following: 0x0000001C If the C bit is set in the Flags field. 0x00000024 If the C bit is clear in the Flags field
getSize
in class EmfPlusRecord
com.aspose.ms.System.IO.InvalidDataException
- Invalid value
Value:
The size.public void setSize(int value)
Gets or sets the size. A 32-bit unsigned integer that specifies the 32-bit-aligned number of bytes in the entire record, including the 12-byte record header and record-specific data. For this record type, the value MUST be one of the following: 0x0000001C If the C bit is set in the Flags field. 0x00000024 If the C bit is clear in the Flags field
setSize
in class EmfPlusRecord
com.aspose.ms.System.IO.InvalidDataException
- Invalid value
Value:
The size.public float getStartAngle()
Gets or sets the start angle A 32-bit non-negative floating-point value that specifies the angle between the x-axis and the starting point of the arc. Any value is acceptable, but it MUST be interpreted modulo 360, with the result that is used being in the range 0.0 inclusive to 360.0 exclusive.
public void setStartAngle(float value)
Gets or sets the start angle A 32-bit non-negative floating-point value that specifies the angle between the x-axis and the starting point of the arc. Any value is acceptable, but it MUST be interpreted modulo 360, with the result that is used being in the range 0.0 inclusive to 360.0 exclusive.
public float getSweepAngle()
Gets or sets the sweep angle A 32-bit floating-point value that specifies the extent of the arc to draw, as an angle in degrees measured from the starting point defined by the StartAngle value. Any value is acceptable, but it MUST be clamped to -360.0 to 360.0 inclusive. A positive value indicates that the sweep is defined in a clockwise direction, and a negative value indicates that the sweep is defined in a counter-clockwise direction.
public void setSweepAngle(float value)
Gets or sets the sweep angle A 32-bit floating-point value that specifies the extent of the arc to draw, as an angle in degrees measured from the starting point defined by the StartAngle value. Any value is acceptable, but it MUST be clamped to -360.0 to 360.0 inclusive. A positive value indicates that the sweep is defined in a clockwise direction, and a negative value indicates that the sweep is defined in a counter-clockwise direction.
public RectangleF getRectangleData()
Gets or sets the rectangle data Either an EmfPlusRect or EmfPlusRectF object that defines the bounding box of the ellipse that is collinear with the arc. This rectangle defines the position, size, and shape of the arc. The type of object in this field is specified by the value of the Flags field.
public void setRectangleData(RectangleF value)
Gets or sets the rectangle data Either an EmfPlusRect or EmfPlusRectF object that defines the bounding box of the ellipse that is collinear with the arc. This rectangle defines the position, size, and shape of the arc. The type of object in this field is specified by the value of the Flags field.
Copyright (c) 2008-2016 Aspose Pty Ltd. All Rights Reserved.