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:
Diffstat (limited to 'PrusaSL1Reader/IFileFormat.cs')
-rw-r--r--PrusaSL1Reader/IFileFormat.cs43
1 files changed, 37 insertions, 6 deletions
diff --git a/PrusaSL1Reader/IFileFormat.cs b/PrusaSL1Reader/IFileFormat.cs
index 629d37f..99e0260 100644
--- a/PrusaSL1Reader/IFileFormat.cs
+++ b/PrusaSL1Reader/IFileFormat.cs
@@ -7,6 +7,7 @@
*/
using System;
+using System.Drawing;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.PixelFormats;
@@ -58,6 +59,11 @@ namespace PrusaSL1Reader
/// Gets the number of created thumbnails
/// </summary>
byte CreatedThumbnailsCount { get; }
+
+ /// <summary>
+ /// Gets the original thumbnail sizes
+ /// </summary>
+ Size[] ThumbnailsOriginalSize { get; }
/// <summary>
/// Gets the thumbnails for this <see cref="FileFormat"/>
@@ -105,19 +111,19 @@ namespace PrusaSL1Reader
float LayerExposureTime { get; }
/// <summary>
- /// Gets the height in mm to retract between layers
+ /// Gets the speed in mm/min for the detracts
/// </summary>
- float ZRetractHeight { get; }
+ float LiftSpeed { get; }
/// <summary>
- /// Gets the speed in mm/min for the retracts
+ /// Gets the height in mm to retract between layers
/// </summary>
- float ZRetractSpeed { get; }
+ float LiftHeight { get; }
/// <summary>
- /// Gets the speed in mm/min for the detracts
+ /// Gets the speed in mm/min for the retracts
/// </summary>
- float ZDetractSpeed { get; }
+ float RetractSpeed { get; }
/// <summary>
/// Gets the estimate print time in seconds
@@ -182,6 +188,31 @@ namespace PrusaSL1Reader
bool IsExtensionValid(string extension, bool isFilePath = false);
/// <summary>
+ /// Gets all valid file extensions in a specified format
+ /// </summary>
+
+ string GetFileExtensions(string prepend = ".", string separator = ", ");
+
+ /// <summary>
+ /// Gets a thumbnail by it height or lower
+ /// </summary>
+ /// <param name="maxHeight">Max height allowed</param>
+ /// <returns></returns>
+ Image<Rgba32> GetThumbnail(uint maxHeight = 400);
+
+ /// <summary>
+ /// Sets thumbnails from a list of thumbnails and clone them
+ /// </summary>
+ /// <param name="images"></param>
+ void SetThumbnails(Image<Rgba32>[] images);
+
+ /// <summary>
+ /// Sets all thumbnails the same image
+ /// </summary>
+ /// <param name="images">Image to set</param>
+ void SetThumbnails(Image<Rgba32> images);
+
+ /// <summary>
/// Begin encode to an output file
/// </summary>
/// <param name="fileFullPath">Output file</param>