|
|
|
@ -23,6 +23,7 @@ namespace Avalonia.Skia |
|
|
|
static void ReleaseProc(IntPtr address, object ctx) |
|
|
|
{ |
|
|
|
((IUnmanagedBlob) ctx).Dispose(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
private static readonly SKBitmapReleaseDelegate ReleaseDelegate = ReleaseProc; |
|
|
|
@ -60,6 +61,11 @@ namespace Avalonia.Skia |
|
|
|
public int PixelWidth { get; private set; } |
|
|
|
public int PixelHeight { get; private set; } |
|
|
|
|
|
|
|
public IntPtr GetPixels() |
|
|
|
{ |
|
|
|
return Bitmap.GetPixels(); |
|
|
|
} |
|
|
|
|
|
|
|
class BitmapDrawingContext : DrawingContextImpl |
|
|
|
{ |
|
|
|
private readonly SKSurface _surface; |
|
|
|
|