Delphi Programming question
Posted on 1997-08-31
Can anybody out there in Delphi-Land please give me a clear explanation of the significance of the highest order byte in a TColor? The TColor entry in Delphi help does not really explain what this means in practical terms at all (at least, not to a graphics dumb-ass like me).
I've tried FloodFill(ing) the canvas of a bitmap with
various TColors and then changing only the highest order
byte: in 256 color graphics mode a highest order byte value
of $00 or $02 seems to result in the same color, except when the $00 color was a dithered color, in which case changing it to $02 seems to result in a solid color with little
resemblance to the $00 dithered color. In high color or true
color graphics modes $00 or $02 seems always to result in
the same color. In all graphics modes setting the highest
order byte of a TColor to $01 seems always to result in pure
Can anyone tell me what the actual practical implications of
these highest order byte values are? Under what
circumstances would you specify $00 or $01 or $02 in a
TColor, and WHY??
Thankyou in advance to anyone with the patience to clarify
this for me.