optimize: use Operation.Call directly
This commit is contained in:
parent
9920d21ad8
commit
36a0f8d39c
1 changed files with 1 additions and 1 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue