فهرست منبع

Conditional SaveToDesktop

Krzysztof Krysiński 1 سال پیش
والد
کامیت
27c6850d66
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      src/ChunkyImageLib/Surface.cs

+ 3 - 1
src/ChunkyImageLib/Surface.cs

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