|
@@ -1,4 +1,5 @@
|
|
|
-using System.Runtime.CompilerServices;
|
|
|
+using System.Diagnostics;
|
|
|
+using System.Runtime.CompilerServices;
|
|
|
using System.Runtime.InteropServices;
|
|
|
using PixiEditor.DrawingApi.Core.ColorsImpl;
|
|
|
using PixiEditor.DrawingApi.Core.Numerics;
|
|
@@ -131,6 +132,7 @@ public class Surface : IDisposable
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
+ [Conditional("DEBUG")]
|
|
|
public void SaveToDesktop(string filename = "savedSurface.png")
|
|
|
{
|
|
|
using var final = DrawingSurface.Create(new ImageInfo(Size.X, Size.Y, ColorType.Rgba8888, AlphaType.Premul, ColorSpace.CreateSrgb()));
|