Class GraphicsState
Holds the alpha values of stroking and non-stroking operations.
public class GraphicsState
- Inheritance
-
GraphicsState
- Inherited Members
Constructors
GraphicsState()
Creates a graphics state with both alpha values set to 1.0.
public GraphicsState()
Methods
GetAlphaNonStroking()
Returns the alpha of non-stroking operations.
public float GetAlphaNonStroking()
Returns
GetAlphaStroking()
Returns the alpha of stroking operations.
public float GetAlphaStroking()
Returns
GetBlendMode()
Returns the blend mode, or null if none was set.
public BlendMode? GetBlendMode()
Returns
SetAlphaNonStroking(float)
Sets the alpha of non-stroking operations, such as fills, from 0.0 to 1.0. Other values are ignored.
public GraphicsState SetAlphaNonStroking(float ca)
Parameters
cafloat
Returns
SetAlphaStroking(float)
Sets the alpha of stroking operations, from 0.0 to 1.0. Other values are ignored.
public GraphicsState SetAlphaStroking(float CA)
Parameters
CAfloat
Returns
SetBlendMode(BlendMode?)
Sets the blend mode: how what is drawn is mixed with what is already on the page. BlendMode.MULTIPLY draws like a highlighter pen. The blend mode stays until a graphics state sets another one, so set BlendMode.NORMAL to go back to painting over. A PDF/A-1 document takes only BlendMode.NORMAL. Null sets none.
public GraphicsState SetBlendMode(BlendMode? blendMode)
Parameters
blendModeBlendMode?