private void WriteLSD()
{
// logical screen size
WriteShort(_width);
WriteShort(_height);
// packed fields
_fs.WriteByte(Convert.ToByte(0x80 | // 1 : global color table flag = 1 (gct used)
0x70 | // 2-4 : color resolution = 7
0x00 | // 5 : gct sort flag = 0
_palSize)); // 6-8 : gct size
_fs.WriteByte(0); // background color index
_fs.WriteByte(0); // pixel aspect ratio - assume 1:1
}