Fix ImageHelper
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user