diff --git a/src/Oh.My.Stitcher/Tile.cs b/src/Oh.My.Stitcher/Tile.cs index 66df0b3..7d613c7 100644 --- a/src/Oh.My.Stitcher/Tile.cs +++ b/src/Oh.My.Stitcher/Tile.cs @@ -61,7 +61,7 @@ public static class Tile for( int row = minRow; row <= maxRow; row++ ) for( int col = minCol; col <= maxCol; col++ ) - images.Add(Image.NewFromFile(FullPath(tilesDirectory, row, col))); + images.Add(( Operation.Call("pngload", FullPath(tilesDirectory, row, col)) as Image )!); using var canvasImage = Image.Arrayjoin(images.ToArray(), width); int cropLeft = (int)( canvasImage.Width * cropOffsetX );