From 7387b2c7771afefdc3a680c7fda3d92ee2c26025 Mon Sep 17 00:00:00 2001 From: AUnicornWithNoLife <55228370+AUnicornWithNoLife@users.noreply.github.com> Date: Mon, 13 Feb 2023 09:58:11 +0000 Subject: [PATCH] resizing --- Cupola/Program.cs | 10 ++++++---- Tranquility/MainWindow.xaml | 33 ++++++++++++++++++++++++--------- Tranquility/MainWindow.xaml.cs | 8 +++++++- 3 files changed, 37 insertions(+), 14 deletions(-) diff --git a/Cupola/Program.cs b/Cupola/Program.cs index c0c596e..d5f3867 100644 --- a/Cupola/Program.cs +++ b/Cupola/Program.cs @@ -1,7 +1,4 @@ using ComputeSharp; -using System.Xml.Linq; -using Windows.Devices.Geolocation; -using static Cupola.Program; namespace Cupola { @@ -110,10 +107,15 @@ namespace Cupola return outputImages; } - private static ReadWriteTexture2D[] Load(string dir) + public static ReadWriteTexture2D[] Load(string dir) { string[] files = Directory.GetFiles(dir); + return Load(files); + } + + public static ReadWriteTexture2D[] Load(string[] files) + { ReadWriteTexture2D[] images = new ReadWriteTexture2D[files.Length]; for (int i = 0; i < files.Length; i++) diff --git a/Tranquility/MainWindow.xaml b/Tranquility/MainWindow.xaml index 25337ec..0fcfa62 100644 --- a/Tranquility/MainWindow.xaml +++ b/Tranquility/MainWindow.xaml @@ -5,15 +5,30 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:Tranquility" mc:Ignorable="d" - Title="MainWindow" Height="450" Width="539"> + Title="Tranquility" Height="450" Width="539"> -