Given...
pixcolor="some long integer"
pixred=(pixcolor & $00FF0000) Shr 16
pixgreen=(pixcolor & $FF00) Shr 8
pixblue=(pixcolor & $FF)
If I did...
writepixel SomePixMap,0,0,pixcolor
and...
setcolor pixred,pixgreen,pixblue
now...
If I did a plot 0,0
or...
DrawPixmap SomePixMap,0,0
would this "always" (endian) result in the same color on screen?
If not, how could I make sure it will?
[edit]
And how about, if I used an image instead of a PixMap?
pixcolor="some long integer"
pixred=(pixcolor & $00FF0000) Shr 16
pixgreen=(pixcolor & $FF00) Shr 8
pixblue=(pixcolor & $FF)
If I did...
writepixel SomePixMap,0,0,pixcolor
and...
setcolor pixred,pixgreen,pixblue
now...
If I did a plot 0,0
or...
DrawPixmap SomePixMap,0,0
would this "always" (endian) result in the same color on screen?
If not, how could I make sure it will?
[edit]
And how about, if I used an image instead of a PixMap?