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
paintType
SvgPaintTypeSpecifies the type of paint object to create.
color
ColorRgba128FloatThe color used if the paintType is PaintType.Color.
id
stringThe element id which acts as the paint server. This id is used if the paint type is SvgPaintType.Uri.