public final class EmfPlusDrawCurve extends EmfPlusDrawingRecordType
The EmfPlusDrawCurve record specifies drawing a cardinal spline NOTE: ObjectID (1 byte): The index of an EmfPlusPen object (section 2.2.1.7) in the EMF+ Object Table to draw the curve. The value MUST be zero to 63, inclusive.
Constructor and Description |
---|
EmfPlusDrawCurve(EmfPlusRecord source)
Initializes a new instance of the
EmfPlusDrawCurve class. |
Modifier and Type | Method and Description |
---|---|
boolean |
getCompressed()
Gets or sets a value indicating whether this
EmfPlusDrawClosedCurve is compressed. |
int |
getNumSegments()
Gets or sets the segments count
A 32-bit unsigned integer that specifies the number of line segments making up the spline.
|
byte |
getObjectId()
Gets or sets the object identifier.
|
PointF[] |
getPointData()
Gets or sets an array of either 32-bit signed integers or 32-bit floating-point numbers of
Count length that defines coordinate values of the endpoints of the lines to be stroked.
|
float |
getTension()
Gets or sets the tension
A 32-bit floating point number that specifies how tightly the spline
bends as it passes through the points.
|
void |
setCompressed(boolean value)
Gets or sets a value indicating whether this
EmfPlusDrawClosedCurve is compressed. |
void |
setNumSegments(int value)
Gets or sets the segments count
A 32-bit unsigned integer that specifies the number of line segments making up the spline.
|
void |
setObjectId(byte value)
Gets or sets the object identifier.
|
void |
setPointData(PointF[] value)
Gets or sets an array of either 32-bit signed integers or 32-bit floating-point numbers of
Count length that defines coordinate values of the endpoints of the lines to be stroked.
|
void |
setTension(float value)
Gets or sets the tension
A 32-bit floating point number that specifies how tightly the spline
bends as it passes through the points.
|
getDataSize, getFlags, getSize, getType, setDataSize, setFlags, setSize
public EmfPlusDrawCurve(EmfPlusRecord source)
Initializes a new instance of the EmfPlusDrawCurve
class.
source
- The source.public boolean getCompressed()
Gets or sets a value indicating whether this EmfPlusDrawClosedCurve
is compressed.
This bit indicates whether the PointData field specifies compressed data.
If set, PointData specifies absolute locations in the coordinate space with 16-bit integer coordinates.
If clear, PointData specifies absolute locations in the coordinate space with 32-bit floating-point coordinates
Note If the Relative flag (below) is set, this flag is undefined and MUST be ignored
true
if compressed; otherwise, false
.public void setCompressed(boolean value)
Gets or sets a value indicating whether this EmfPlusDrawClosedCurve
is compressed.
This bit indicates whether the PointData field specifies compressed data.
If set, PointData specifies absolute locations in the coordinate space with 16-bit integer coordinates.
If clear, PointData specifies absolute locations in the coordinate space with 32-bit floating-point coordinates
Note If the Relative flag (below) is set, this flag is undefined and MUST be ignored
true
if compressed; otherwise, false
.public byte getObjectId()
Gets or sets the object identifier. The index of an EmfPlusPen object (section 2.2.1.7) in the EMF+ Object Table to draw the curve. The value MUST be zero to 63, inclusive.
Value: The object identifier.public void setObjectId(byte value)
Gets or sets the object identifier. The index of an EmfPlusPen object (section 2.2.1.7) in the EMF+ Object Table to draw the curve. The value MUST be zero to 63, inclusive.
Value: The object identifier.public float getTension()
Gets or sets the tension A 32-bit floating point number that specifies how tightly the spline bends as it passes through the points. A value of 0 specifies that the spline is a sequence of straight lines. As the value increases, the curve becomes more rounded. For more information, see [SPLINE77] and [PETZOLD].
public void setTension(float value)
Gets or sets the tension A 32-bit floating point number that specifies how tightly the spline bends as it passes through the points. A value of 0 specifies that the spline is a sequence of straight lines. As the value increases, the curve becomes more rounded. For more information, see [SPLINE77] and [PETZOLD].
public int getNumSegments()
Gets or sets the segments count A 32-bit unsigned integer that specifies the number of line segments making up the spline.
public void setNumSegments(int value)
Gets or sets the segments count A 32-bit unsigned integer that specifies the number of line segments making up the spline.
public PointF[] getPointData()
Gets or sets an array of either 32-bit signed integers or 32-bit floating-point numbers of Count length that defines coordinate values of the endpoints of the lines to be stroked.
public void setPointData(PointF[] value)
Gets or sets an array of either 32-bit signed integers or 32-bit floating-point numbers of Count length that defines coordinate values of the endpoints of the lines to be stroked.