FF-2008: Added HEIC as a image type

This commit is contained in:
John Andrews
2025-01-28 14:17:35 +13:00
parent 99e56a87d1
commit 15f707735f
2 changed files with 3 additions and 0 deletions

View File

@@ -10,4 +10,5 @@ public class Constants
internal const string IMAGE_FORMAT_TIFF = "Tiff";
internal const string IMAGE_FORMAT_TGA = "Tga";
internal const string IMAGE_FORMAT_WEBP = "WebP";
internal const string IMAGE_FORMAT_HEIC = "Heic";
}

View File

@@ -37,6 +37,7 @@ public abstract class ImageNode : ImageBaseNode
new () { Value = "###GROUP###", Label = "Lossy Formats" },
new () { Value = IMAGE_FORMAT_JPEG, Label = "JPEG" },
new () { Value = IMAGE_FORMAT_GIF, Label = "GIF" },
new () { Value = IMAGE_FORMAT_HEIC, Label = "HEIC" },
new () { Value = IMAGE_FORMAT_PBM, Label = "PBM" },
};
}
@@ -69,6 +70,7 @@ public abstract class ImageNode : ImageBaseNode
case IMAGE_FORMAT_JPEG: return ImageType.Jpeg;
case IMAGE_FORMAT_TIFF: return ImageType.Tiff;
case IMAGE_FORMAT_WEBP: return ImageType.Webp;
case IMAGE_FORMAT_HEIC: return ImageType.Heic;
}
return null;
}