EmfPlusDrawCurve

Inheritance: java.lang.Object, com.aspose.imaging.fileformats.emf.MetaObject, com.aspose.imaging.fileformats.emf.emfplus.records.EmfPlusRecord, com.aspose.imaging.fileformats.emf.emfplus.records.EmfPlusDrawingRecordType

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.

Constructors

ConstructorDescription
EmfPlusDrawCurve(EmfPlusRecord source)Initializes a new instance of the EmfPlusDrawCurve class.

Methods

MethodDescription
getCompressed()Gets or sets a value indicating whether this EmfPlusDrawClosedCurve is compressed.
setCompressed(boolean value)Gets or sets a value indicating whether this EmfPlusDrawClosedCurve is compressed.
getObjectId()Gets or sets the object identifier.
setObjectId(byte value)Gets or sets the object identifier.
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.
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.
getNumSegments()Gets or sets the segments count A 32-bit unsigned integer that specifies the number of line segments making up the spline.
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.
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.
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.

EmfPlusDrawCurve(EmfPlusRecord source)

public EmfPlusDrawCurve(EmfPlusRecord source)

Initializes a new instance of the EmfPlusDrawCurve class.

Parameters:

ParameterTypeDescription
sourceEmfPlusRecordThe source.

getCompressed()

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

Value: true if compressed; otherwise, false.

Returns: boolean

setCompressed(boolean value)

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

Value: true if compressed; otherwise, false.

Parameters:

ParameterTypeDescription
valueboolean

getObjectId()

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.

Returns: byte

setObjectId(byte value)

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.

Parameters:

ParameterTypeDescription
valuebyte

getTension()

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].

Returns: float

setTension(float value)

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].

Parameters:

ParameterTypeDescription
valuefloat

getNumSegments()

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.

Returns: int

setNumSegments(int value)

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.

Parameters:

ParameterTypeDescription
valueint

getPointData()

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.

Returns: com.aspose.imaging.PointF[]

setPointData(PointF[] value)

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.

Parameters:

ParameterTypeDescription
valuePointF[]