feat: more image formats

This commit is contained in:
scientificworld
2026-04-16 22:47:43 +08:00
parent 13dee197da
commit 19827e5eeb
6 changed files with 247 additions and 1 deletions

View File

@@ -37,6 +37,8 @@ namespace GameRes.Formats.PenguinWorks {
public override ImageMetaData ReadMetaData(IBinaryStream file) {
uint width = file.ReadUInt32();
uint height = file.ReadUInt32();
if (file.Length != 8 + 3 * width * height)
return null;
return new ImageMetaData {
Width = width,
Height = height,
@@ -53,7 +55,7 @@ namespace GameRes.Formats.PenguinWorks {
}
public override void Write(Stream file, ImageData image) {
throw new System.NotImplementedException ("PxlFormat.Write not implemented");
throw new System.NotImplementedException("PxlFormat.Write not implemented");
}
}
}