Method CreatePaint
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.dll
CreatePaint(SvgPaintType, ColorRgba128Float, string?)
Creates a paint object which can be used to set the 'fill' or 'stroke' properties.
ISvgPaint CreatePaint(SvgPaintType paintType, ColorRgba128Float color, string? id)
Parameters
paintTypeSvgPaintTypeSpecifies the type of paint object to create.
colorColorRgba128FloatThe color used if the paintType is PaintType.Color.
idstringThe element id which acts as the paint server. This id is used if the paint type is SvgPaintType.Uri.