Fix ImageHelper

This commit is contained in:
2025-06-20 09:22:34 -04:00
parent 58b6ebc1b7
commit 64cb4be409
2 changed files with 33 additions and 16 deletions

View File

@@ -18,7 +18,7 @@ namespace MarketData.CNNProcessing
public ImageHelper(ImageHelper imageHelper)
{
this.bitmap=Copy(imageHelper.bitmap);
pointMapping = new PointMapping(Width,Height,Width-1,0,Height-1,0);
pointMapping = new PointMapping(imageHelper.pointMapping);
}
public void Dispose()
@@ -141,7 +141,7 @@ namespace MarketData.CNNProcessing
public void CreateImage(int width, int height)
{
DisposeAll();
this.pointMapping = new PointMapping(width, height, width, 0, height, 0, 0,0);
this.pointMapping = new PointMapping(width, height, width-1, 0, height-1, 0, 0,0);
bitmap=new SKBitmap(width,height,SKColorType.Rgba8888, SKAlphaType.Premul);
Validate();
}