cadencii.BITMAPINFOHEADER.Read C# (CSharp) Method

Read() public static method

public static Read ( Stream stream ) : BITMAPINFOHEADER
stream Stream
return BITMAPINFOHEADER
        public static BITMAPINFOHEADER Read( Stream stream ) {
            BITMAPINFOHEADER bifh = new BITMAPINFOHEADER();
            byte[] buf = new byte[4];
            bifh.biSize = readUInt32( stream );
            bifh.biWidth = readInt32( stream );
            bifh.biHeight = readInt32( stream );
            bifh.biPlanes = readInt16( stream );
            bifh.biBitCount = readInt16( stream );
            bifh.biCompression = readUInt32( stream );
            bifh.biSizeImage = readUInt32( stream );
            bifh.biXPelsPerMeter = readInt32( stream );
            bifh.biYPelsPerMeter = readInt32( stream );
            bifh.biClrUsed = readUInt32( stream );
            bifh.biClrImportant = readUInt32( stream );
            return bifh;
        }