Table of Contents

Class SKPaintExtensions

Namespace
DrawnUi.Draw
Assembly
DrawnUi.Maui.dll

Guarded setters for SKPaint properties. Each method compares a managed shadow value before calling the native P/Invoke setter, eliminating redundant interop when the value has not changed between frames. Methods are prefixed with "Guard" to avoid conflicts with SkiaSharp's own instance methods.

public static class SKPaintExtensions
Inheritance
SKPaintExtensions
Inherited Members

Methods

GuardBlendMode(SKPaint, ref SKBlendMode, SKBlendMode)

public static void GuardBlendMode(this SKPaint paint, ref SKBlendMode cache, SKBlendMode value)

Parameters

paint SKPaint
cache SKBlendMode
value SKBlendMode

GuardColor(SKPaint, ref SKColor, SKColor)

public static void GuardColor(this SKPaint paint, ref SKColor cache, SKColor value)

Parameters

paint SKPaint
cache SKColor
value SKColor

GuardColorFilter(SKPaint, ref SKColorFilter, SKColorFilter)

public static void GuardColorFilter(this SKPaint paint, ref SKColorFilter cache, SKColorFilter value)

Parameters

paint SKPaint
cache SKColorFilter
value SKColorFilter

GuardFilterQuality(SKPaint, ref SKFilterQuality, SKFilterQuality)

public static void GuardFilterQuality(this SKPaint paint, ref SKFilterQuality cache, SKFilterQuality value)

Parameters

paint SKPaint
cache SKFilterQuality
value SKFilterQuality

GuardImageFilter(SKPaint, ref SKImageFilter, SKImageFilter)

public static void GuardImageFilter(this SKPaint paint, ref SKImageFilter cache, SKImageFilter value)

Parameters

paint SKPaint
cache SKImageFilter
value SKImageFilter

GuardIsAntialias(SKPaint, ref bool, bool)

public static void GuardIsAntialias(this SKPaint paint, ref bool cache, bool value)

Parameters

paint SKPaint
cache bool
value bool

GuardIsDither(SKPaint, ref bool, bool)

public static void GuardIsDither(this SKPaint paint, ref bool cache, bool value)

Parameters

paint SKPaint
cache bool
value bool

GuardStrokeWidth(SKPaint, ref float, float)

public static void GuardStrokeWidth(this SKPaint paint, ref float cache, float value)

Parameters

paint SKPaint
cache float
value float

GuardStyle(SKPaint, ref SKPaintStyle, SKPaintStyle)

public static void GuardStyle(this SKPaint paint, ref SKPaintStyle cache, SKPaintStyle value)

Parameters

paint SKPaint
cache SKPaintStyle
value SKPaintStyle

GuardTextSize(SKPaint, ref float, float)

public static void GuardTextSize(this SKPaint paint, ref float cache, float value)

Parameters

paint SKPaint
cache float
value float

GuardTypeface(SKPaint, ref SKTypeface, SKTypeface)

public static void GuardTypeface(this SKPaint paint, ref SKTypeface cache, SKTypeface value)

Parameters

paint SKPaint
cache SKTypeface
value SKTypeface