diff options
author | Tiago Conceição <Tiago_caza@hotmail.com> | 2021-01-14 02:19:23 +0300 |
---|---|---|
committer | Tiago Conceição <Tiago_caza@hotmail.com> | 2021-01-14 02:19:23 +0300 |
commit | 097bbb867dd2a5942602d0dadc71187494e55b35 (patch) | |
tree | 3e3da6bf15cb0b3c9197bd8e63322f1250afba1d /UVtools.Core/FileFormats/ImageFile.cs | |
parent | 17bdece1b536013ae72213717311a0dcd389f97c (diff) |
v2.3.0v2.3.0
* **PrusaSlicer:**
* **In this release is recommended to discard your printer and refresh it with uvtools updated printer or replace notes over**
* (Add) FILEFORMAT_XXX variable to auto-convert to that file format once open in UVtools
* (Update) Print profiles fields with new PrusaSlicer version
* (Remove) LayerOffDelay from printer notes and use only the LightOffDelay variable instead, both were being used, to avoid redundacy LayerOffDelay was dropped. Please update your printer accordingly!
* (Remove) FLIP_XY compability from printers
* (Remove) AntiAlias variable from printers
* **(Add) Settings - Automations:**
* Auto save the file after apply any automation(s)
* Auto convert SL1 files to the target format when possible and load it back
* Auto set the extra 'light-off delay' based on lift height and speed.
* (Add) Allow all and future formats to convert between them without knowing each other (Abstraction)
* (Add) XYResolution and XYResolutionUm property to file formats
* (Add) Calculator - Optimal model tilt: Calculates the optimal model tilt angle for printing and to minimize the visual layer effect
* (Add) Bottom layer count to the status bar
* **(Add) FileFormat propertiers:**
* MirrorDisplay: If images need to be mirrored on lcd to print on the correct orientation (If available)
* MaxPrintHeight: The maximum Z build volume of the printer (If available)
* (Add) ZCodex: Print paramenter light-off delay"
* (Add) SL1: Implement missing keys: host_type, physical_printer_settings_id and support_small_pillar_diameter_percent
* (Change) File formats: Round all setters floats to 2 decimals
* (Change) Island Repair: "Remove Islands Below Equal Pixels" limit from 255 to 65535 (#124)
* (Change) LightOffTime variables to LayerOffDelay
* (Fix) Files with upper case extensions doesn't load in
* **(Fix) SL1:**
* Prevent error when bottle volume is 0
* bool values were incorrectly parsed
* (Fix) **ZIP:**
* Material volume was set to grams
* Bed Y was not being set
Diffstat (limited to 'UVtools.Core/FileFormats/ImageFile.cs')
-rw-r--r-- | UVtools.Core/FileFormats/ImageFile.cs | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/UVtools.Core/FileFormats/ImageFile.cs b/UVtools.Core/FileFormats/ImageFile.cs index 3331d44..490b286 100644 --- a/UVtools.Core/FileFormats/ImageFile.cs +++ b/UVtools.Core/FileFormats/ImageFile.cs @@ -12,15 +12,13 @@ namespace UVtools.Core.FileFormats public override FileExtension[] FileExtensions { get; } = { - new FileExtension("jpg", "JPG"), - new FileExtension("jpeg", "JPEG"), - new FileExtension("png", "PNG"), - new FileExtension("bmp", "BMP"), - new FileExtension("gif", "GIF"), - new FileExtension("tga", "TGA"), + new ("jpg", "JPG"), + new ("jpeg", "JPEG"), + new ("png", "PNG"), + new ("bmp", "BMP"), + new ("gif", "GIF"), + new ("tga", "TGA"), }; - - public override Type[] ConvertToFormats { get; } = null; public override PrintParameterModifier[] PrintParameterModifiers { get; } = null; public override byte ThumbnailsCount { get; } = 4; public override Size[] ThumbnailsOriginalSize { get; } = null; @@ -56,7 +54,18 @@ namespace UVtools.Core.FileFormats } } - public override byte AntiAliasing { get; } = 1; + public override bool MirrorDisplay + { + get => false; + set { } + } + + public override byte AntiAliasing + { + get => 1; + set { } + } + public override float LayerHeight { get; set; } = 0; /*public override float PrintTime { get; } = 0; public override float UsedMaterial { get; } = 0; @@ -95,7 +104,7 @@ namespace UVtools.Core.FileFormats this[0].LayerMat.Save(filePath ?? FileFullPath); } - public override bool Convert(Type to, string fileFullPath, OperationProgress progress = null) + public override FileFormat Convert(Type to, string fileFullPath, OperationProgress progress = null) { throw new NotImplementedException(); } |