Class SKPaintExtensions
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
paintSKPaintcacheSKBlendModevalueSKBlendMode
GuardColor(SKPaint, ref SKColor, SKColor)
public static void GuardColor(this SKPaint paint, ref SKColor cache, SKColor value)
Parameters
GuardColorFilter(SKPaint, ref SKColorFilter, SKColorFilter)
public static void GuardColorFilter(this SKPaint paint, ref SKColorFilter cache, SKColorFilter value)
Parameters
paintSKPaintcacheSKColorFiltervalueSKColorFilter
GuardFilterQuality(SKPaint, ref SKFilterQuality, SKFilterQuality)
public static void GuardFilterQuality(this SKPaint paint, ref SKFilterQuality cache, SKFilterQuality value)
Parameters
paintSKPaintcacheSKFilterQualityvalueSKFilterQuality
GuardImageFilter(SKPaint, ref SKImageFilter, SKImageFilter)
public static void GuardImageFilter(this SKPaint paint, ref SKImageFilter cache, SKImageFilter value)
Parameters
paintSKPaintcacheSKImageFiltervalueSKImageFilter
GuardIsAntialias(SKPaint, ref bool, bool)
public static void GuardIsAntialias(this SKPaint paint, ref bool cache, bool value)
Parameters
GuardIsDither(SKPaint, ref bool, bool)
public static void GuardIsDither(this SKPaint paint, ref bool cache, bool value)
Parameters
GuardStrokeWidth(SKPaint, ref float, float)
public static void GuardStrokeWidth(this SKPaint paint, ref float cache, float value)
Parameters
GuardStyle(SKPaint, ref SKPaintStyle, SKPaintStyle)
public static void GuardStyle(this SKPaint paint, ref SKPaintStyle cache, SKPaintStyle value)
Parameters
paintSKPaintcacheSKPaintStylevalueSKPaintStyle
GuardTextSize(SKPaint, ref float, float)
public static void GuardTextSize(this SKPaint paint, ref float cache, float value)
Parameters
GuardTypeface(SKPaint, ref SKTypeface, SKTypeface)
public static void GuardTypeface(this SKPaint paint, ref SKTypeface cache, SKTypeface value)
Parameters
paintSKPaintcacheSKTypefacevalueSKTypeface