mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
feat: more image formats
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user