normalized the crops and optimized
This commit is contained in:
parent
ddb324bbd4
commit
661c4b955c
4 changed files with 67 additions and 50 deletions
|
|
@ -13,9 +13,9 @@ public static class Program
|
|||
var opt = new Options
|
||||
{
|
||||
CanvasRect = "A1:AE55",
|
||||
CropOffset = [0.0, 0.0],
|
||||
CropSize = [1.0, 1.0],
|
||||
OutputScale = 1.0,
|
||||
CropOffset = [0.4, 0.4],
|
||||
CropSize = [0.8, 0.8],
|
||||
OutputScale = 0.5,
|
||||
OutputPath = "stitched.png"
|
||||
};
|
||||
|
||||
|
|
@ -40,7 +40,7 @@ public static class Program
|
|||
File.WriteAllBytes(opt.OutputPath!, pngBytes);
|
||||
Console.WriteLine($"Done. Wrote {opt.OutputPath} ({pngBytes.Length / 1024.0:F1} KB)");
|
||||
|
||||
Console.WriteLine(begin - sw.ElapsedMilliseconds);
|
||||
Console.WriteLine(sw.ElapsedMilliseconds - begin);
|
||||
return 0;
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue