From bf475ea21af09f00ca36aba3c098ac4f03aba590 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Sun, 1 Sep 2024 18:50:33 +0100 Subject: [PATCH] Remove ImageSharp --- Thief Mission Viewer.csproj | 3 --- project/code/TMV/TextureLoader.Gif.cs | 12 ------------ 2 files changed, 15 deletions(-) diff --git a/Thief Mission Viewer.csproj b/Thief Mission Viewer.csproj index bd60786..8ad48fc 100644 --- a/Thief Mission Viewer.csproj +++ b/Thief Mission Viewer.csproj @@ -4,7 +4,4 @@ true ThiefMissionViewer - - - \ No newline at end of file diff --git a/project/code/TMV/TextureLoader.Gif.cs b/project/code/TMV/TextureLoader.Gif.cs index 080d80e..6cacf04 100644 --- a/project/code/TMV/TextureLoader.Gif.cs +++ b/project/code/TMV/TextureLoader.Gif.cs @@ -1,13 +1,10 @@ using Godot; using KeepersCompound.Images; -using SixLabors.ImageSharp.PixelFormats; namespace KeepersCompound.TMV; public partial class TextureLoader { - // TODO: Replace this with my own implementation lol - // TODO: Alpha!? // References: // - https://www.w3.org/Graphics/GIF/spec-gif89a.txt private static ImageTexture LoadGif(string path) @@ -17,14 +14,5 @@ public partial class TextureLoader var bytes = gifImage.GetRgbaBytes(); var image = Image.CreateFromData(gifImage.Width, gifImage.Height, false, Image.Format.Rgba8, bytes); return ImageTexture.CreateFromImage(image); - - // using var gifImage = SixLabors.ImageSharp.Image.Load(path); - - // var width = gifImage.Width; - // var height = gifImage.Height; - // var bytes = new byte[width * height * 4]; - // gifImage.CopyPixelDataTo(bytes); - // var image = Image.CreateFromData(width, height, false, Image.Format.Rgba8, bytes); - // return ImageTexture.CreateFromImage(image); } } \ No newline at end of file