Doese GDI+ provide the functions such as SetROP2 in GDI?
-
No, it does not. I did this by using OnPrtepareDC, and drawing the rubber band or shape to the screen directly, only drawing it to the bitmap at the end of the operation. Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
-
What do you mean by "rubber line"? Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here."
Wish You Were Here-Pink Floyd-1975 -
No, it does not. I did this by using OnPrtepareDC, and drawing the rubber band or shape to the screen directly, only drawing it to the bitmap at the end of the operation. Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
-
can you explain it in more detail? the background in the client area is a bitmap, i draw my shape to the screen directly,too. but i don't know how to erase it. thanks to all the programmers who have helped me.
It erases itself, because you draw the bitmap to the screen, then draw the line to the screen. Next time you draw the bitmap, the line is not there, so only the new one is drawn. Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. "I'm somewhat suspicious of STL though. My (test,experimental) program worked first time. Whats that all about??!?! - Jon Hulatt, 22/3/2002
-
You can intermingle gdi and gdi+ code, so yes. SetROP2() is not supported in gdi+ anymore i believe, but you can still call the old SetROP2() as you still have a dc handle somewhere in your code. cheers, swinfeaster Check out Aephid Photokeeper, the powerful digital photo album solution at www.aephid.com.