Table of Contents

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 SvgPaintType

Specifies the type of paint object to create.

color ColorRgba128Float

The color used if the paintType is PaintType.Color.

id string

The element id which acts as the paint server. This id is used if the paint type is SvgPaintType.Uri.

Returns

ISvgPaint