From 36a0f8d39ca8e12ce72c52ac5d58566e484766b4 Mon Sep 17 00:00:00 2001 From: Renjaya Raga Zenta Date: Thu, 31 Jul 2025 00:00:42 +0700 Subject: [PATCH] optimize: use Operation.Call directly --- src/Oh.My.Stitcher/Tile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );