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-02-17 08:26:53 +0300
committerTiago Conceição <Tiago_caza@hotmail.com>2021-02-17 08:26:53 +0300
commitf1dea71c601ccb6472cb32480d6bc57572d03809 (patch)
tree6e289d0e1fd3a6dbb380dcedd2ef5236aaec7f2b /UVtools.Core/Extensions/DrawingExtensions.cs
parentf69a0f1175603e87558e0587e5a29ea882ef7e9b (diff)
v2.4.7v2.4.7
* (Add) Computed used material milliliters for each layer, it will dynamic change if pixels are added or subtracted * (Add) Computed used material milliliters for whole model, it will dynamic change if pixels are added or subtracted * (Improvement) Round cost, material ml and grams from 2 to 3 decimals * (Improvement) Operation profiles: Allow to save and get a custom layer range instead of pre-defined ranges * **(Improvement)** PhotonWorkshop files: (#149) * Fill in the display width, height and MaxZ values for the printers * Fill in the xy pixel size values for the printers * Change ResinType to PriceCurrencyDec and Add PriceCurrencySymbol * Change Offset1 on header to PrintTime * Change Offset1 on layer table as NonZeroPixelCount, the number of white pixels on the layer * Fix LayerPositionZ to calculate the correct value based on each layer height and fix internal layer layer height which was been set to position z * Force PerLayerOverride to be always 1 after save the file * (Fix) Actions - Remove and clone layers was selecting all layer range instead of the current layer * (Fix) Redo last action was not getting back the layer range on some cases
Diffstat (limited to 'UVtools.Core/Extensions/DrawingExtensions.cs')
-rw-r--r--UVtools.Core/Extensions/DrawingExtensions.cs15
1 files changed, 0 insertions, 15 deletions
diff --git a/UVtools.Core/Extensions/DrawingExtensions.cs b/UVtools.Core/Extensions/DrawingExtensions.cs
index 33406a5..f98529c 100644
--- a/UVtools.Core/Extensions/DrawingExtensions.cs
+++ b/UVtools.Core/Extensions/DrawingExtensions.cs
@@ -20,20 +20,5 @@ namespace UVtools.Core.Extensions
Math.Min(Math.Max(min, color.B * factor), max));
return Color.FromArgb(r, g, b);
}
-
- public static int GetArea(this Rectangle rect)
- {
- return rect.Width * rect.Height;
- }
-
- public static int GetArea(this Size size)
- {
- return size.Width * size.Height;
- }
-
- public static int GetMaximum(this Size size)
- {
- return Math.Max(size.Width, size.Height);
- }
}
}