public static ushort R16(uint colorref) { ushort aShort = (ushort)((colorref & 0xff) << 8); return aShort; }