Save is now working.

Run button now sets scale and debug symbol.
Run button now displays preview image.
This commit is contained in:
Creeper Lv
2025-12-28 23:03:33 +11:00
parent 460cc8edd9
commit ac5053a5df
10 changed files with 109 additions and 55 deletions

View File

@@ -1,4 +1,5 @@
using SkiaSharp;
using System.Diagnostics;
namespace Progrart.Core
{
@@ -15,6 +16,10 @@ namespace Progrart.Core
{
return new SKPoint(x * DrawingCore.Width, y * DrawingCore.Height);
}
public SKPoint TranslatePoint(SKPoint point)
{
return TranslatePoint(point.X, point.Y);
}
public RenderContext(int W, int H)
{
DrawingCore = new PrimitiveDrawingCore(W, H);
@@ -32,10 +37,11 @@ namespace Progrart.Core
{
Width = W;
Height = H;
Trace.WriteLine($"Createing Surface as: {W} x {H}");
info = new SKImageInfo(W, H);
surface = SKSurface.Create(info);
canvas = surface.Canvas;
canvas.Clear();
}
public SKData ToData()
{