// Send pixel format
outBuf.writeByte(bitsPerPixel);
outBuf.writeByte(depth);
outBuf.writeByte(bigEndianFlag);
outBuf.writeByte(trueColourFlag);
outBuf.writeShort(redMax);
outBuf.writeShort(greenMax);
outBuf.writeShort(blueMax);
outBuf.writeByte(redShift);
outBuf.writeByte(greenShift);
outBuf.writeByte(blueShift);