Oct 7th, 2000, 04:52 PM
Hi.
I need to know if it is possible to do the equivalent of a BitBLT with SRCINVERT (inverting pixels when copying) except not for Bitblt but for drawing a line?
I know I could create my own function using getpixel and setpixel, but that means I have to read and set EVERY pixel of the line I wish to draw, which is quite slow.
So just to make sure I'm clear:
- I draw a green line on a black background.
- the line I draw crosses another line which is red.
- I want the point where the to lines cross to be inverted (yellow I think).
If anyone knows something about this, I would appreciate.
I need to know if it is possible to do the equivalent of a BitBLT with SRCINVERT (inverting pixels when copying) except not for Bitblt but for drawing a line?
I know I could create my own function using getpixel and setpixel, but that means I have to read and set EVERY pixel of the line I wish to draw, which is quite slow.
So just to make sure I'm clear:
- I draw a green line on a black background.
- the line I draw crosses another line which is red.
- I want the point where the to lines cross to be inverted (yellow I think).
If anyone knows something about this, I would appreciate.