Beispiel #1
0
        internal LogicalScreenDescriptor GetLCD(Stream stream)
        {
            LogicalScreenDescriptor lcd = new LogicalScreenDescriptor();

            lcd.Width  = ReadShort();
            lcd.Height = ReadShort();
            lcd.Packed = (byte)Read();
            lcd.GlobalColorTableFlag = ((lcd.Packed & 0x80) >> 7) == 1;
            lcd.ColorResoluTion      = (byte)((lcd.Packed & 0x60) >> 5);
            lcd.SortFlag             = (byte)(lcd.Packed & 0x10) >> 4;
            lcd.GlobalColorTableSize = 2 << (lcd.Packed & 0x07);
            lcd.BgColorIndex         = (byte)Read();
            lcd.PixcelAspect         = (byte)Read();
            return(lcd);
        }
Beispiel #2
0
 internal void WriteLSD(LogicalScreenDescriptor lsd)
 {
     WriteBytes(lsd.GetBuffer());
 }