Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Conceição <Tiago_caza@hotmail.com>2021-08-13 18:18:03 +0300
committerTiago Conceição <Tiago_caza@hotmail.com>2021-08-13 18:18:03 +0300
commit4beb2af96196e96cccadf7f2d901878dec7c5855 (patch)
tree79224ac233802040161735e77f79fd8bf6c72061 /UVtools.Core/FileFormats/ImageFile.cs
parent12ce4d75aaaad3a9c563e51d888006b68cb76ada (diff)
Add explicit type for FileExtension
https://github.com/tslater2006/UVtools/commit/38a49a764c12712ed2fbf12c069090b7ec3814f7
Diffstat (limited to 'UVtools.Core/FileFormats/ImageFile.cs')
-rw-r--r--UVtools.Core/FileFormats/ImageFile.cs25
1 files changed, 16 insertions, 9 deletions
diff --git a/UVtools.Core/FileFormats/ImageFile.cs b/UVtools.Core/FileFormats/ImageFile.cs
index 07f5139..45f69fb 100644
--- a/UVtools.Core/FileFormats/ImageFile.cs
+++ b/UVtools.Core/FileFormats/ImageFile.cs
@@ -8,19 +8,26 @@ namespace UVtools.Core.FileFormats
{
public class ImageFile : FileFormat
{
- public override FileFormatType FileType { get; } = FileFormatType.Binary;
+ public override FileFormatType FileType => FileFormatType.Binary;
public override FileExtension[] FileExtensions { get; } =
{
- new ("jpg", "JPG"),
- new ("jpeg", "JPEG"),
- new ("png", "PNG"),
- new ("bmp", "BMP"),
- new ("gif", "GIF"),
- new ("tga", "TGA"),
+ new (typeof(ImageFile), "png", "PNG: Portable Network Graphics"),
+ new (typeof(ImageFile), "jpg", "JPG: Joint Photographic Experts Group"),
+ new (typeof(ImageFile), "jpeg", "JPEG: Joint Photographic Experts Group"),
+ new (typeof(ImageFile), "jp2", "JP2: Joint Photographic Experts Group (JPEG 2000)"),
+ //new (typeof(ImageFile), "tga", "TGA: Truevision"),
+ new (typeof(ImageFile), "tif", "TIF: Tag Image File Format"),
+ new (typeof(ImageFile), "tiff", "TIFF: Tag Image File Format"),
+ new (typeof(ImageFile), "bmp", "BMP: Bitmap"),
+ new (typeof(ImageFile), "pbm", "PBM: Portable Bitmap"),
+ new (typeof(ImageFile), "pgm", "PGM: Portable Greymap"),
+ //new (typeof(ImageFile), "gif", "GIF"),
+ new (typeof(ImageFile), "sr", "SR: Sun raster"),
+ new (typeof(ImageFile), "RAS", "RAS: Sun raster"),
};
- public override PrintParameterModifier[] PrintParameterModifiers { get; } = null;
-
+ public override PrintParameterModifier[] PrintParameterModifiers => null;
+
public override Size[] ThumbnailsOriginalSize { get; } = {
Size.Empty,
Size.Empty,