update
This commit is contained in:
parent
75170c76c9
commit
426a90bfcc
3 changed files with 9 additions and 2 deletions
|
@ -43,7 +43,7 @@
|
|||
|
||||
<StackPanel Grid.Row="1" Width="300" Spacing="10" HorizontalAlignment="Left">
|
||||
<TextBlock Text="Game Name"/>
|
||||
<TextBox Name="GameNameBox" MaxLength="20" TextChanged="GameNameBox_OnTextChanged"/>
|
||||
<TextBox Name="GameNameBox" MaxLength="32" TextChanged="GameNameBox_OnTextChanged"/>
|
||||
|
||||
<TextBlock Text="Serial Number"/>
|
||||
<TextBox Name="SerialBox" IsEnabled="False"/>
|
||||
|
|
|
@ -3,6 +3,7 @@ using System.IO;
|
|||
using System.Linq;
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using Avalonia;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Media.Imaging;
|
||||
using Avalonia.Threading;
|
||||
|
@ -98,6 +99,10 @@ public class Game
|
|||
string targetDirectory = settings.library_path.GetValue<string>();
|
||||
if(!Directory.Exists(Path.Combine(targetDirectory, "ART")))
|
||||
Directory.CreateDirectory(Path.Combine(targetDirectory, "ART"));
|
||||
this.Cover.Save(Path.Combine(Path.Combine(targetDirectory, "ART"), this.GameID + "_COV.png"));
|
||||
//this.Cover.Save(Path.Combine(Path.Combine(targetDirectory, "ART"), this.GameID + "_COV.png"));
|
||||
this.Cover.CreateScaledBitmap(
|
||||
new PixelSize(353, 500),
|
||||
BitmapInterpolationMode.HighQuality
|
||||
).Save(Path.Combine(Path.Combine(targetDirectory, "ART"), this.GameID + "_COV.png"));
|
||||
}
|
||||
}
|
|
@ -1,6 +1,8 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Avalonia;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Media.Imaging;
|
||||
|
||||
namespace PS2_Manager.Core;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue