mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 12:26:30 +00:00
fix editing tiled images
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace Azaion.Common.Extensions;
|
||||
|
||||
public static class SizeExtensions
|
||||
{
|
||||
public static bool FitSizeForAI(this Size size) =>
|
||||
// Allow to be up to FullHD to save as 1280*1280
|
||||
size.Width <= Constants.AI_TILE_SIZE * 1.5 && size.Height <= Constants.AI_TILE_SIZE * 1.5;
|
||||
}
|
||||
Reference in New Issue
Block a user