Further RGB.NET updates

This commit is contained in:
Robert committed 2021-03-06 00:07:40 +01:00
1 parent 5bcba8a4a5
commit 4b914718e6
6 files changed
+15 -8

No files matched your search

+7 -1
View File
@@ -8,7 +8,7 @@ namespace Artemis.Core
/// <summary>
/// Represents a SkiaSharp-based RGB.NET PixelTexture
/// </summary>
public sealed class SKTexture : PixelTexture<byte>
public sealed class SKTexture : PixelTexture<byte>, IDisposable
{
#region Constructors
@@ -42,6 +42,12 @@ namespace Artemis.Core
/// </summary>
protected override ReadOnlySpan<byte> Data => Bitmap.GetPixelSpan();
/// <inheritdoc />
public void Dispose()
{
Bitmap.Dispose();
}
#endregion
}
}