using SkiaSharp;
namespace Artemis.Core;
///
/// A static class providing extensions
///
public static class SKPaintExtensions
{
///
/// Disposes the paint and its disposable properties such as shaders and filters.
///
/// The pain to dispose.
public static void DisposeSelfAndProperties(this SKPaint paint)
{
paint.ImageFilter?.Dispose();
paint.ColorFilter?.Dispose();
paint.MaskFilter?.Dispose();
paint.Shader?.Dispose();
paint.Dispose();
}
}