AlbLib.Imaging.HeaderedImage.HeaderedImage C# (CSharp) Method

HeaderedImage() public method

Initializes new instance.
public HeaderedImage ( Stream stream ) : System
stream Stream
return System
        public HeaderedImage(Stream stream)
        {
            BinaryReader reader = new BinaryReader(stream);
            Width = reader.ReadInt16();
            Height = reader.ReadInt16();
            reader.ReadByte();
            FramesCount = reader.ReadByte();
            ImageData = reader.ReadBytes(Width*Height);
        }

Same methods

HeaderedImage::HeaderedImage ( byte rawdata ) : System
HeaderedImage::HeaderedImage ( short width, short height, byte data ) : System