Files
annotations/Azaion.Common/Extensions/SizeExtensions.cs
T
Oleksandr Bezdieniezhnykh b6b6751c37 fix loader bug with _CACHED_HW_INFO
put tile size to name and set it dynamically for AI recognition
2025-09-02 13:59:23 +03:00

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;
}