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-03-04 02:48:55 +0300
committerTiago Conceição <Tiago_caza@hotmail.com>2021-03-04 02:48:55 +0300
commit93d038128098bb4ea91f3e8e97d89c30c6736b12 (patch)
tree8df2f6808388112e64d06294c90bbb112f1f7f3c /UVtools.Core/FileFormats/PhotonSFile.cs
parent5fc722e203ad7dfbee29b8348f698f665b23aafc (diff)
v2.6.1v2.6.1
* (Add) Setting: Auto repair layers and issues on file load * (Improvement) When ComputeIssuesOnLoad is enabled and issues are detected it will switch the view to the Issues tab * **(Improvement) Raft Relief:** * Add parameter "Mask layer index": Defines the mask layer to use and ignore the white blobs on the raft * Increase the automatic support detection allowance on more odd shapes * Prevent layer 0 to be used as a mask, if so it will quit * If the ignored layer number are set and equal or larger than mask layer index it will quit * Fix progress count when using ignored layers * Change supports dilate kernel from Elipse to Rectangle for a better coverage of the pad * Change the default values for a more conservative values * (Fix) When both ComputeIssuesOnLoad and ComputeIssuesOnClickTab are enabled, clicking the issues tab will rescan for issues * (Fix) Tools: Set a default profile insn't working * (Fix) Redoing the last operation was not recovering the custom ROI on the operation
Diffstat (limited to 'UVtools.Core/FileFormats/PhotonSFile.cs')
-rw-r--r--UVtools.Core/FileFormats/PhotonSFile.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/UVtools.Core/FileFormats/PhotonSFile.cs b/UVtools.Core/FileFormats/PhotonSFile.cs
index 0a1af1c..27fb6fa 100644
--- a/UVtools.Core/FileFormats/PhotonSFile.cs
+++ b/UVtools.Core/FileFormats/PhotonSFile.cs
@@ -126,7 +126,7 @@ namespace UVtools.Core.FileFormats
for (int i = 0; i < imageLength; i++)
{
//color = color <= 127 ? 0 : 255; // Sanitize no AA
- byte thisColor = spanMat[i] <= 127 ? 0 : 255; // Sanitize no AA
+ byte thisColor = spanMat[i] <= 127 ? byte.MinValue : byte.MaxValue; // Sanitize no AA
if (thisColor != color)
{
AddRep();