Foxit PDF SDK
|
Inherits SystemIDisposable.
Public Types | |
enum | LineCapStyle { LineCapStyle.e_LineCapButt = 0, LineCapStyle.e_LineCapRound = 1, LineCapStyle.e_LineCapSquare = 2 } |
Enumeration for line cap style. More... | |
enum | LineJoinStyle { LineJoinStyle.e_LineJoinMiter = 0, LineJoinStyle.e_LineJoinRound = 1, LineJoinStyle.e_LineJoinBevel = 2 } |
Enumeration for line join style. More... | |
Public Member Functions | |
GraphState (float line_width, GraphState.LineJoinStyle line_join, float miter_limit, GraphState.LineCapStyle line_cap, float dash_phase, FloatArray dashes) | |
Constructor, with parameters. More... | |
GraphState () | |
Constructor. | |
GraphState (GraphState state) | |
Constructor, with another graph state object. More... | |
void | Set (float line_width, GraphState.LineJoinStyle line_join, float miter_limit, GraphState.LineCapStyle line_cap, float dash_phase, FloatArray dashes) |
Set value. More... | |
Properties | |
float | dash_phase [get, set] |
Dash phase for dash pattern. | |
FloatArray? | dashes [get, set] |
A dash array that represents the dash patterns. Value of each element in this array should not be negative. | |
GraphState.LineCapStyle | line_cap [get, set] |
Line cap style. More... | |
GraphState.LineJoinStyle | line_join [get, set] |
Line join style. More... | |
float | line_width [get, set] |
Line width. More... | |
float | miter_limit [get, set] |
The miter limit for line join. More... | |
This class represents PDF graph states.
|
strong |
Enumeration for line cap style.
Values of this enumeration should be used alone. The line cap style specifies the shape to be used at the ends of open sub paths (and dashes, if any) when they are stroked.
|
strong |
Enumeration for line join style.
Values of this enumeration should be used alone. The line join style specifies the shape to be used at the corners of paths that are stroked.
|
inline |
Constructor, with parameters.
[in] | line_width | Line width. If 0 is set to this, it will be treated as 1 by default. |
[in] | line_join | Line join style. Please refer to values starting from foxit.common.GraphState.LineJoinStyle.e_LineJoinMiter and this should be one of these values. |
[in] | miter_limit | The miter limit for line join. |
[in] | line_cap | Line cap style. Please refer to values starting from foxit.common.GraphState.LineCapStyle.e_LineCapButt and this should be one of these values. |
[in] | dash_phase | Dash phase for line dash pattern. |
[in] | dashes | A dash array that represents the dash patterns. The value of each element in this array should not be negative. |
|
inline |
Constructor, with another graph state object.
[in] | state | Another graph state object. |
|
inline |
Set value.
[in] | line_width | Line width. If 0 is set to this, it will be treated as 1 by default. |
[in] | line_join | Line join style. Please refer to values starting from foxit.common.GraphState.LineJoinStyle.e_LineJoinMiter and this should be one of these values. |
[in] | miter_limit | The miter limit for line join. |
[in] | line_cap | Line cap style. Please refer to values starting from foxit.common.GraphState.LineCapStyle.e_LineCapButt and this should be one of these values. |
[in] | dash_phase | Dash phase for line dash pattern. |
[in] | dashes | A dash array that represents the dash patterns. The value of each element in this array should not be negative. |
|
getset |
Line cap style.
The line cap style specifies the shape to be used at the ends of open sub-paths (and dashes, if any) when they are stroked. Please refer to values starting from foxit.common.GraphState.LineCapStyle.e_LineCapButt and this should be one of these values.
|
getset |
Line join style.
The line join style specifies the shape to be used at the corners of paths that are stroked. Please refer to values starting from foxit.common.GraphState.LineJoinStyle.e_LineJoinMiter and this should be one of these values.
|
getset |
Line width.
It should be a non-negative number in PDF coordinate system. If 0 is set to this, it will be treated as 1 by default.
|
getset |
The miter limit for line join.
When two line segments meet at a sharp angle and mitered joins have been specified as the line join style, it is possible for the miter to extend far beyond the thickness of the line stroking the path. The miter limit imposes a maximum on the ratio of the miter length to the line width. When the limit is exceeded, the join is converted from a miter to a bevel.
Please refer to <PDF Reference 1.7> P217 "Miter Limit" for more details.