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 'UVtools.Core/FileFormats/LGSFile.cs')
-rw-r--r--UVtools.Core/FileFormats/LGSFile.cs16
1 files changed, 14 insertions, 2 deletions
diff --git a/UVtools.Core/FileFormats/LGSFile.cs b/UVtools.Core/FileFormats/LGSFile.cs
index 1d9a059..6847cdf 100644
--- a/UVtools.Core/FileFormats/LGSFile.cs
+++ b/UVtools.Core/FileFormats/LGSFile.cs
@@ -42,8 +42,8 @@ namespace UVtools.Core.FileFormats
[FieldOrder(3)] public uint Uint_10 { get; set; } = 30; // 0x10: 30 ?
[FieldOrder(4)] public uint Uint_14 { get; set; } = 0; // 0x14: 0 ?
[FieldOrder(5)] public uint Uint_18 { get; set; } = 34; // 0x18: 34 ?
- [FieldOrder(6)] public float PixelPerMmY { get; set; }
- [FieldOrder(7)] public float PixelPerMmX { get; set; }
+ [FieldOrder(6)] public float PixelPerMmX { get; set; }
+ [FieldOrder(7)] public float PixelPerMmY { get; set; }
[FieldOrder(8)] public float ResolutionX { get; set; }
[FieldOrder(9)] public float ResolutionY { get; set; }
[FieldOrder(10)] public float LayerHeight { get; set; }
@@ -246,6 +246,18 @@ namespace UVtools.Core.FileFormats
set => HeaderSettings.ResolutionY = value;
}
+ public override float DisplayWidth
+ {
+ get => ResolutionX / HeaderSettings.PixelPerMmX;
+ set { }
+ }
+
+ public override float DisplayHeight
+ {
+ get => ResolutionY / HeaderSettings.PixelPerMmY;
+ set { }
+ }
+
public override byte AntiAliasing => 4;
public override float LayerHeight