Save is now working.
Run button now sets scale and debug symbol. Run button now displays preview image.
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user