optimize: use Operation.Call directly

This commit is contained in:
Renjaya Raga Zenta 2025-07-31 00:00:42 +07:00
parent 9920d21ad8
commit 36a0f8d39c

View file

@ -61,7 +61,7 @@ public static class Tile
for( int row = minRow; row <= maxRow; row++ ) for( int row = minRow; row <= maxRow; row++ )
for( int col = minCol; col <= maxCol; col++ ) 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); using var canvasImage = Image.Arrayjoin(images.ToArray(), width);
int cropLeft = (int)( canvasImage.Width * cropOffsetX ); int cropLeft = (int)( canvasImage.Width * cropOffsetX );