CreatePen Method (RenderContextBase)
Creates a IPen2D valid for the current render pass. Use this to draw outlines, quads and lines
Syntax
public abstract IPen2D CreatePen( Color color, bool antiAliasing, float strokeThickness, double opacity, double[] strokeDashArray, PenLineCap strokeEndLineCap )
Parameters
- color
- The color of the pen, supports transparency
- antiAliasing
- If true, use antialiasing
- strokeThickness
- The strokethickness, default=1.0
- opacity
- The opecity of the pen
- strokeDashArray
- strokeEndLineCap
Return Value
The IPen2D instance
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also