mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 10:06:30 +00:00
b6b6751c37
put tile size to name and set it dynamically for AI recognition
10 lines
325 B
C#
10 lines
325 B
C#
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_DEFAULT * 1.5 && size.Height <= Constants.AI_TILE_SIZE_DEFAULT * 1.5;
|
|
} |