mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Added ColorBox for future reference
This commit is contained in:
parent
6cad16ccd5
commit
e9fd9ca10e
@ -136,6 +136,9 @@
|
|||||||
<HintPath>..\packages\Caliburn.Micro.2.0.2\lib\net45\Caliburn.Micro.Platform.dll</HintPath>
|
<HintPath>..\packages\Caliburn.Micro.2.0.2\lib\net45\Caliburn.Micro.Platform.dll</HintPath>
|
||||||
<Private>True</Private>
|
<Private>True</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="ColorBox">
|
||||||
|
<HintPath>lib\ColorBox.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="Corale.Colore, Version=4.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="Corale.Colore, Version=4.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Colore.4.0.0\lib\net35\Corale.Colore.dll</HintPath>
|
<HintPath>..\packages\Colore.4.0.0\lib\net35\Corale.Colore.dll</HintPath>
|
||||||
<Private>True</Private>
|
<Private>True</Private>
|
||||||
|
|||||||
@ -80,7 +80,7 @@ namespace Artemis.ViewModels
|
|||||||
{
|
{
|
||||||
// For the preview, put the proposed properties into the calculated properties
|
// For the preview, put the proposed properties into the calculated properties
|
||||||
_layer.LayerCalculatedProperties = ProposedProperties;
|
_layer.LayerCalculatedProperties = ProposedProperties;
|
||||||
var bitmap = new Bitmap(ProposedProperties.Width, ProposedProperties.Height);
|
var bitmap = new Bitmap(ProposedProperties.Width*4, ProposedProperties.Height*4);
|
||||||
|
|
||||||
using (var g = Graphics.FromImage(bitmap))
|
using (var g = Graphics.FromImage(bitmap))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -150,8 +150,8 @@
|
|||||||
<TextBlock Grid.Row="9" Grid.Column="2" Margin="10" FontSize="13.333" Text="Rotation speed:"
|
<TextBlock Grid.Row="9" Grid.Column="2" Margin="10" FontSize="13.333" Text="Rotation speed:"
|
||||||
VerticalAlignment="Center" Height="18" />
|
VerticalAlignment="Center" Height="18" />
|
||||||
<Slider x:Name="RotationSpeed" Grid.Row="9" Grid.Column="3" VerticalAlignment="Center"
|
<Slider x:Name="RotationSpeed" Grid.Row="9" Grid.Column="3" VerticalAlignment="Center"
|
||||||
TickPlacement="BottomRight" TickFrequency="1"
|
TickPlacement="BottomRight" TickFrequency="0.1"
|
||||||
Value="{Binding Path=ProposedProperties.RotateSpeed, Mode=TwoWay}" Minimum="1" Maximum="10"
|
Value="{Binding Path=ProposedProperties.RotateSpeed, Mode=TwoWay}" Minimum="0.1" Maximum="3"
|
||||||
SmallChange="1" IsSnapToTickEnabled="True" Margin="10,7" Height="24" />
|
SmallChange="1" IsSnapToTickEnabled="True" Margin="10,7" Height="24" />
|
||||||
|
|
||||||
<!-- Color direction -->
|
<!-- Color direction -->
|
||||||
@ -212,7 +212,7 @@
|
|||||||
<!-- Preview -->
|
<!-- Preview -->
|
||||||
<TextBlock Grid.Row="11" Grid.Column="0" Margin="10,13,10,0" FontSize="13.333" Text="Preview:"
|
<TextBlock Grid.Row="11" Grid.Column="0" Margin="10,13,10,0" FontSize="13.333" Text="Preview:"
|
||||||
VerticalAlignment="Top" Height="18" />
|
VerticalAlignment="Top" Height="18" />
|
||||||
<Image Grid.Row="11" Grid.Column="1" Grid.ColumnSpan="2" Margin="10" Source="{Binding LayerImage}" />
|
<Image Grid.Row="11" Grid.Column="1" Grid.ColumnSpan="2" Margin="10" Source="{Binding LayerImage}" Stretch="Uniform" Width="280" Height="105"/>
|
||||||
|
|
||||||
<Button Grid.Row="12" Grid.Column="0" x:Name="Apply" Content="Apply" VerticalAlignment="Bottom"
|
<Button Grid.Row="12" Grid.Column="0" x:Name="Apply" Content="Apply" VerticalAlignment="Bottom"
|
||||||
Style="{DynamicResource SquareButtonStyle}" Width="95" HorizontalAlignment="Left" Margin="10,0,0,20"
|
Style="{DynamicResource SquareButtonStyle}" Width="95" HorizontalAlignment="Left" Margin="10,0,0,20"
|
||||||
|
|||||||
BIN
Artemis/Artemis/lib/ColorBox.dll
Normal file
BIN
Artemis/Artemis/lib/ColorBox.dll
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user