Move RGBA image contract to model

This commit is contained in:
gamer147
2026-08-03 10:46:28 -04:00
parent 94f59ddc3c
commit a584b734b3
24 changed files with 30 additions and 17 deletions

View File

@@ -1,10 +1,8 @@
using System.Buffers.Binary;
using Age.Engine.Model;
namespace Age.Engine.Sys4;
/// <summary>A decoded, tightly packed, top-down RGBA8 image.</summary>
public sealed record RgbaImage(int Width, int Height, byte[] Pixels);
/// <summary>
/// Platform-neutral Eushully AGF decoder. Format algorithm ported from GARbro's MIT-licensed
/// ArcFormats/Eushully/ImageAGF.cs (Copyright (C) 2015 morkt).