From e9fd9ca10e6aca18ac91dafcb55988e35736e157 Mon Sep 17 00:00:00 2001 From: SpoinkyNL Date: Sun, 3 Apr 2016 10:23:30 +0200 Subject: [PATCH] Added ColorBox for future reference --- Artemis/Artemis/Artemis.csproj | 3 +++ .../Artemis/ViewModels/LayerEditorViewModel.cs | 2 +- Artemis/Artemis/Views/LayerEditorView.xaml | 6 +++--- Artemis/Artemis/lib/ColorBox.dll | Bin 0 -> 79872 bytes 4 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 Artemis/Artemis/lib/ColorBox.dll diff --git a/Artemis/Artemis/Artemis.csproj b/Artemis/Artemis/Artemis.csproj index 1821266cc..fc62c1b72 100644 --- a/Artemis/Artemis/Artemis.csproj +++ b/Artemis/Artemis/Artemis.csproj @@ -136,6 +136,9 @@ ..\packages\Caliburn.Micro.2.0.2\lib\net45\Caliburn.Micro.Platform.dll True + + lib\ColorBox.dll + ..\packages\Colore.4.0.0\lib\net35\Corale.Colore.dll True diff --git a/Artemis/Artemis/ViewModels/LayerEditorViewModel.cs b/Artemis/Artemis/ViewModels/LayerEditorViewModel.cs index 2d43aa8b8..64e8a41e9 100644 --- a/Artemis/Artemis/ViewModels/LayerEditorViewModel.cs +++ b/Artemis/Artemis/ViewModels/LayerEditorViewModel.cs @@ -80,7 +80,7 @@ namespace Artemis.ViewModels { // For the preview, put the proposed properties into the calculated properties _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)) { diff --git a/Artemis/Artemis/Views/LayerEditorView.xaml b/Artemis/Artemis/Views/LayerEditorView.xaml index f106761d9..c7607a9f2 100644 --- a/Artemis/Artemis/Views/LayerEditorView.xaml +++ b/Artemis/Artemis/Views/LayerEditorView.xaml @@ -150,8 +150,8 @@ @@ -212,7 +212,7 @@ - +