Esempio n. 1
0
        /// <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;
            }
        }
Esempio n. 2
0
 public IBinaryStream OpenBinaryStream(Entry entry)
 {
     return(m_arc.OpenBinaryEntry(entry));
 }
Esempio n. 3
0
        /// <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));
        }