public final class EmfPlusFillClosedCurve extends EmfPlusDrawingRecordType
The EmfPlusFillClosedCurve record specifies filling the interior of a closed cardinal spline
Constructor and Description |
---|
EmfPlusFillClosedCurve(EmfPlusRecord source)
Initializes a new instance of the
EmfPlusFillClosedCurve class. |
Modifier and Type | Method and Description |
---|---|
int |
getBrushId()
Gets or sets the brush identifier
A 32-bit unsigned integer that specifies the EmfPlusBrush, the content of which is
determined by the S bit in the Flags field.
|
boolean |
getCompressed()
Gets or sets a value indicating whether this
EmfPlusFillClosedCurve is compressed. |
PointF[] |
getPointData()
Gets or sets the point data
An array of Count points that specify the endpoints of the lines that define the spline.
|
boolean |
getRelative()
Gets or sets a value indicating whether this
EmfPlusFillClosedCurve is relative. |
float |
getTension()
Gets or sets the tension
A 32-bit floating point value that specifies how tightly the spline bends as it passes
through the points.
|
boolean |
getWinding()
Gets or sets a value indicating whether this
EmfPlusFillClosedCurve is winding. |
boolean |
isColor()
Gets or sets a value indicating whether this instance is color.
|
void |
setBrushId(int value)
Gets or sets the brush identifier
A 32-bit unsigned integer that specifies the EmfPlusBrush, the content of which is
determined by the S bit in the Flags field.
|
void |
setColor(boolean value)
Gets or sets a value indicating whether this instance is color.
|
void |
setCompressed(boolean value)
Gets or sets a value indicating whether this
EmfPlusFillClosedCurve is compressed. |
void |
setPointData(PointF[] value)
Gets or sets the point data
An array of Count points that specify the endpoints of the lines that define the spline.
|
void |
setRelative(boolean value)
Gets or sets a value indicating whether this
EmfPlusFillClosedCurve is relative. |
void |
setTension(float value)
Gets or sets the tension
A 32-bit floating point value that specifies how tightly the spline bends as it passes
through the points.
|
void |
setWinding(boolean value)
Gets or sets a value indicating whether this
EmfPlusFillClosedCurve is winding. |
getDataSize, getFlags, getSize, getType, setDataSize, setFlags, setSize
public EmfPlusFillClosedCurve(EmfPlusRecord source)
Initializes a new instance of the EmfPlusFillClosedCurve
class.
source
- The source.public boolean isColor()
Gets or sets a value indicating whether this instance is color. If set, BrushId specifies a color as an EmfPlusARGB object (section 2.2.2.1). If clear, BrushId contains the index of an EmfPlusBrush object (section 2.2.1.1) in the EMF+ Object Table.
Value:true
if this instance is color; otherwise, false
.public void setColor(boolean value)
Gets or sets a value indicating whether this instance is color. If set, BrushId specifies a color as an EmfPlusARGB object (section 2.2.2.1). If clear, BrushId contains the index of an EmfPlusBrush object (section 2.2.1.1) in the EMF+ Object Table.
Value:true
if this instance is color; otherwise, false
.public boolean getCompressed()
Gets or sets a value indicating whether this EmfPlusFillClosedCurve
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.
----------------------
A "winding" fill operation fills areas according to the "even-odd parity" rule.
According to this rule, a test point can be determined to be inside or outside a
closed curve as follows: Draw a line from the test point to a point that is distant
from the curve. If that line crosses the curve an odd number of times, the test
point is inside the curve; otherwise, the test point is outside the curve.
---------------------
An "alternate" fill operation fills areas according to the "non-zero" rule.
According to this rule, a test point can be determined to be inside or outside
a closed curve as follows: Draw a line from a test point to a point that is
distant from the curve. Count the number of times the curve crosses the test
line from left to right, and count the number of times the curve crosses the
test line from right to left. If those two numbers are the same, the test point
is outside the curve; otherwise, the test point is inside the curve.
true
if compressed; otherwise, false
.public void setCompressed(boolean value)
Gets or sets a value indicating whether this EmfPlusFillClosedCurve
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.
----------------------
A "winding" fill operation fills areas according to the "even-odd parity" rule.
According to this rule, a test point can be determined to be inside or outside a
closed curve as follows: Draw a line from the test point to a point that is distant
from the curve. If that line crosses the curve an odd number of times, the test
point is inside the curve; otherwise, the test point is outside the curve.
---------------------
An "alternate" fill operation fills areas according to the "non-zero" rule.
According to this rule, a test point can be determined to be inside or outside
a closed curve as follows: Draw a line from a test point to a point that is
distant from the curve. Count the number of times the curve crosses the test
line from left to right, and count the number of times the curve crosses the
test line from right to left. If those two numbers are the same, the test point
is outside the curve; otherwise, the test point is inside the curve.
true
if compressed; otherwise, false
.public boolean getWinding()
Gets or sets a value indicating whether this EmfPlusFillClosedCurve
is winding.
This bit indicates how to perform the fill operation.
If set, the fill is a "winding" fill. If clear, the fill is an "alternate" fill.
true
if winding; otherwise, false
.public void setWinding(boolean value)
Gets or sets a value indicating whether this EmfPlusFillClosedCurve
is winding.
This bit indicates how to perform the fill operation.
If set, the fill is a "winding" fill. If clear, the fill is an "alternate" fill.
true
if winding; otherwise, false
.public boolean getRelative()
Gets or sets a value indicating whether this EmfPlusFillClosedCurve
is relative.
This bit indicates whether the PointData field specifies relative or absolute locations.
If set, each element in PointData specifies a location in the coordinate space that is
relative to the location specified by the previous element in the array. In the case
of the first element in PointData, a previous location at coordinates (0,0) is assumed.
If clear, PointData specifies absolute locations according to the C flag.
Note If this flag is set, the C flag (above) is undefined and MUST be ignored.
true
if relative; otherwise, false
.public void setRelative(boolean value)
Gets or sets a value indicating whether this EmfPlusFillClosedCurve
is relative.
This bit indicates whether the PointData field specifies relative or absolute locations.
If set, each element in PointData specifies a location in the coordinate space that is
relative to the location specified by the previous element in the array. In the case
of the first element in PointData, a previous location at coordinates (0,0) is assumed.
If clear, PointData specifies absolute locations according to the C flag.
Note If this flag is set, the C flag (above) is undefined and MUST be ignored.
true
if relative; otherwise, false
.public int getBrushId()
Gets or sets the brush identifier A 32-bit unsigned integer that specifies the EmfPlusBrush, the content of which is determined by the S bit in the Flags field. This brush is used to fill the interior of the closed cardinal spline.
public void setBrushId(int value)
Gets or sets the brush identifier A 32-bit unsigned integer that specifies the EmfPlusBrush, the content of which is determined by the S bit in the Flags field. This brush is used to fill the interior of the closed cardinal spline.
public float getTension()
Gets or sets the tension A 32-bit floating point value that specifies how tightly the spline bends as it passes through the points. A value of 0.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 value that specifies how tightly the spline bends as it passes through the points. A value of 0.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 PointF[] getPointData()
Gets or sets the point data An array of Count points that specify the endpoints of the lines that define the spline. In a closed cardinal spline, the curve continues through the last point in the PointData array and connects with the first point in the array
public void setPointData(PointF[] value)
Gets or sets the point data An array of Count points that specify the endpoints of the lines that define the spline. In a closed cardinal spline, the curve continues through the last point in the PointData array and connects with the first point in the array