Click here to Skip to main content
15,916,941 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I used DrawString to write something on the picture's background (this background is an image not a color)
but i need to rewrite this text when the picturebox is rotated
how can i do that?
thx :)
Posted

1 solution

Redraw the image, then redraw the text where you need.
 
Share this answer
 
Comments
Member 8403770 11-Jan-12 12:19pm    
I saved the images in a struct before adding the text on the picturebox ..
and then saved the picture in a bitmap ,rotated it and put in the picturebox's background the new image and redraw the text .. but nothing happened ..the text is drawn twice
lewax00 12-Jan-12 1:16am    
Well if you have it as the background there should be some way to clear the control without removing the image. Something like <pre lang="c#">pictureBox1.Invalidate();</pre> should clear the text I believe.
Member 8403770 14-Jan-12 9:30am    
mm didn't work .. but i solved it ty :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900