Thanks to Maurizio R on the Xojo Forum and everyone here who has been so patient and helpful!
"Qt serialize colors as I posted in my previous message. Alpha, Red, Green and Blue are 16 bits values not 8 bit values emitted as a 16 bits values. For example a full red color has the red part emitted as &hffff not &h00ff.” — Maurizio R Here’s the correct code, finally. (assumes input fColor as color ) // foreground color outputStream.WriteUInt8 (1) // RGB is Type 1 outputStream.WriteUInt8 (255) // Alpha channel = fully opaque outputStream.WriteUInt8 (255) outputStream.WriteUInt8 (fColor.Red) // Red outputStream.WriteUInt8 (255) outputStream.WriteUInt8 (fColor.Green) // outputStream.WriteUInt8 (0) outputStream.WriteUInt8 (fColor.Blue) // outputStream.WriteUInt8 (0) outputStream.WriteUInt16 (0) // Pad 73, Ed W1KOK
_______________________________________________ wsjt-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wsjt-devel
