Files
UVtools/UVtools.WPF/Controls/Tools/ToolMaskControl.axaml
T
Tiago Conceição 9a147e7909 v2.4.5
* (Add) Setting: Expand and show tool descriptions by default
* (Improvement) Drag and drop a file on Main Window while hold SHIFT key will open the file under a new instance
* (Improvement) PrusaSlicer & SL1 files: Allow to set custom variables on "Material - Notes" per resin to override the "Printer - Notes" variables
    This will allow custom settings per resin, for example, if you want a higher 'lift height, lift speed, etc' on more viscous resins. (#141)
* (Change) Setting: Windows vertical margin to 60px
* (Fix) Export file was getting a "Parameter count mismatch" on some file formats (#140)
* (Fix) photon and cbddlp file formats with version 3 to never hash images
* (Fix) Windows was not geting the screen bounds from the active monitor
* (Fix) Tool windows height, vertical margin and position
* **(Fix) Exposure time finder:**
  * Text label
  * Set vertical splitter to not show decimals, int value
  * Set vertical splitter default to 0
  * Allow vertical splitter to accept negative values
  * Optimized the default values
  * Removed similar letters from text
  * Add some symbols to text to validate overexposure
  * Decrease Features height minimum value to 0.5mm
2021-02-12 23:53:20 +00:00

117 lines
3.1 KiB
XML

<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="800"
x:Class="UVtools.WPF.Controls.Tools.ToolMaskControl">
<StackPanel Spacing="10">
<StackPanel Orientation="Horizontal" Spacing="10">
<Button
Padding="10"
Content="Import grayscale mask image from file"
Command="{Binding ImportImageMask}"
/>
<CheckBox
VerticalAlignment="Center"
IsChecked="{Binding IsMaskInverted}"
Content="Invert Mask"/>
</StackPanel>
<Border
BorderBrush="LightGray"
BorderThickness="1"
Margin="0,5"
Padding="5"
>
<StackPanel>
<TextBlock FontWeight="Bold" Text="Mask generator (Round from center):"/>
<Grid
RowDefinitions="Auto,10,Auto"
ColumnDefinitions="Auto,10,Auto,10,Auto,10,Auto,10,Auto"
Margin="0,10,0,0"
>
<TextBlock
VerticalAlignment="Center"
Text="Minimum brightness:"/>
<NumericUpDown
Grid.Row="0"
Grid.Column="2"
Minimum="0"
Maximum="255"
Value="{Binding GenMinimumBrightness}"
/>
<TextBlock
Grid.Row="0"
Grid.Column="4"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Text="(0-255)"/>
<TextBlock
Grid.Row="0"
Grid.Column="6"
VerticalAlignment="Center"
Text="Maximum brightness:"
/>
<NumericUpDown
Grid.Row="0"
Grid.Column="8"
Minimum="0"
Maximum="255"
Value="{Binding GenMaximumBrightness}"
/>
<TextBlock
Grid.Row="2"
VerticalAlignment="Center"
Text="Diameter in pixels:"/>
<NumericUpDown
Grid.Row="2"
Grid.Column="2"
Minimum="0"
Maximum="10000"
Value="{Binding GenDiameter}"
/>
<Button
Grid.Row="2"
Grid.Column="4"
Grid.ColumnSpan="5"
Content="Generate"
Padding="5"
VerticalAlignment="Stretch"
Command="{Binding GenerateMask}"
/>
</Grid>
</StackPanel>
</Border>
<TextBlock Text="{Binding InfoPrinterResolutionStr}"/>
<TextBlock Text="{Binding InfoMaskResolutionStr}"/>
<Border
BorderBrush="LightGray"
BorderThickness="1"
Margin="0,5"
Padding="5"
>
<StackPanel Height="400">
<TextBlock FontWeight="Bold" Text="Mask image:"/>
<Image
Height="300"
Width="450"
Stretch="UniformToFill"
Source="{Binding MaskImage}"/>
</StackPanel>
</Border>
</StackPanel>
</UserControl>