mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-12 13:28:33 +00:00
Core - Made SKPaintExtensions public
This commit is contained in:
parent
5ccd1a9761
commit
f6f6f0fe6a
@ -2,9 +2,16 @@
|
||||
|
||||
namespace Artemis.Core;
|
||||
|
||||
internal static class SKPaintExtensions
|
||||
/// <summary>
|
||||
/// A static class providing <see cref="SKPaint" /> extensions
|
||||
/// </summary>
|
||||
public static class SKPaintExtensions
|
||||
{
|
||||
internal static void DisposeSelfAndProperties(this SKPaint paint)
|
||||
/// <summary>
|
||||
/// Disposes the paint and its disposable properties such as shaders and filters.
|
||||
/// </summary>
|
||||
/// <param name="paint">The pain to dispose.</param>
|
||||
public static void DisposeSelfAndProperties(this SKPaint paint)
|
||||
{
|
||||
paint.ImageFilter?.Dispose();
|
||||
paint.ColorFilter?.Dispose();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user