Fix Baker build

This commit is contained in:
cinder
2024-07-13 16:39:02 -05:00
committed by Cinder Roxley
parent 0bd79c44d0
commit a46c1a6bcd
3 changed files with 7 additions and 2 deletions

View File

@@ -28,4 +28,7 @@
<None Include="..\..\README.md" Pack="true" PackagePath="\" />
<None Include="..\..\data\logo.png" Pack="true" PackagePath="\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="System.Drawing.Common" Version="8.0.7" />
</ItemGroup>
</Project>

View File

@@ -1,4 +1,5 @@
using System;
using System.Drawing;
using System.Runtime.InteropServices;
namespace Baker

View File

@@ -1,7 +1,8 @@
using System;
using System.Windows.Forms;
using System.IO;
using OpenMetaverse.Imaging;
using System.Drawing;
using IronSoftware.Drawing;
namespace Baker
{
@@ -26,7 +27,7 @@ namespace Baker
if (stream != null)
{
_alphaMask = LoadTGAClass.LoadTGA(stream);
_alphaMask = AnyBitmap.FromStream(stream);
stream.Close();
pic1.Image = Oven.ModifyAlphaMask(_alphaMask, (byte)scrollWeight.Value, 0.0f); // *HACK: