TIP: Click on subject to list as thread! ANSI
echo: delphi
to: DEREK BENNER
from: BRYAN SMITH
date: 1996-07-08 21:38:00
subject: XOR on Canvas.Pixels[].

BS> The "XOR value" is presumably determined by the colour of the text
BS> that you BitBlt with.  If it is white text on black background, the
BS> background XOR with $0 does nothing, and the foreground presumably
BS> XOR's with the 4-bit colour white, or $F - that's the way it
BS> behaves.  So I guess I can change the colour of the sprite by
BS> juggling the colour of the text that I blit with.  Will try it out,
BS> thanks for your suggestion.
Well, I tried it, and the result was not as expected.  Putting text onto a
memory context with a black background and either a clWhite or clYellow
foreground, then BitBlt-ing that memory context text onto a clNavy canvas
using SRCINVERT, produced clYellow sprite text.  Any colour of foreground
other than clWhite or clYellow produced an invisible sprite.  Beats me.
--- PPoint 2.00
---------------
* Origin: Kingston, Canada (1:249/109.11)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.