mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-23 19:34:15 +08:00
added constructors that accept ImageMetaData.
This commit is contained in:
parent
60827a2a5f
commit
94d426d8a9
@ -80,6 +80,13 @@ namespace GameRes
|
|||||||
Info = format.Item2;
|
Info = format.Item2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ImageFormatDecoder (IBinaryStream file, ImageFormat format, ImageMetaData info)
|
||||||
|
{
|
||||||
|
m_file = file;
|
||||||
|
SourceFormat = format;
|
||||||
|
Info = info;
|
||||||
|
}
|
||||||
|
|
||||||
bool m_disposed = false;
|
bool m_disposed = false;
|
||||||
public void Dispose ()
|
public void Dispose ()
|
||||||
{
|
{
|
||||||
@ -114,6 +121,12 @@ namespace GameRes
|
|||||||
m_input = input;
|
m_input = input;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected BinaryImageDecoder (IBinaryStream input, ImageMetaData info)
|
||||||
|
{
|
||||||
|
m_input = input;
|
||||||
|
Info = info;
|
||||||
|
}
|
||||||
|
|
||||||
protected abstract ImageData GetImageData ();
|
protected abstract ImageData GetImageData ();
|
||||||
|
|
||||||
#region IDisposable members
|
#region IDisposable members
|
||||||
|
Loading…
x
Reference in New Issue
Block a user