/// <summary> /// Open <paramref name="entry"> as image. Throws InvalidFormatException if entry is not an image. /// </summary> public virtual IImageDecoder OpenImage(ArcFile arc, Entry entry) { var input = arc.OpenBinaryEntry(entry); try { return(new ImageFormatDecoder(input)); } catch { input.Dispose(); throw; } }
public IBinaryStream OpenBinaryStream(Entry entry) { return(m_arc.OpenBinaryEntry(entry)); }
/// <summary> /// Open <paramref name="entry"> as image. Throws InvalidFormatException if entry is not an image. /// </summary> public virtual IImageDecoder OpenImage(ArcFile arc, Entry entry) { var input = arc.OpenBinaryEntry(entry); return(ImageFormatDecoder.Create(input)); }