473,378 Members | 1,426 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

GraphicState

I am having trouble saving and restoring GraphicStates. Could someone please give me a working example? Thanks.

--
I am a 14 year old C# developer, I am completely self taught, so please don't get mad if I ask a stupid question. Thanks.
Nov 16 '05 #1
2 1807
Bill English wrote:
I am having trouble saving and restoring GraphicStates. Could someone please give me a working example? Thanks.


If you are trying to save a graphics state of the graphics is linked to a window, I dont think its going to work.
If you initialized the graphics object somethign like this Graphics myGraphics = e.Graphics;, thats a graphics linked to the window.

If it is an ofscreen graphic then it should work.

Could you give a little more detail to what you are trying to do, there might be other ways to achive what you want.

Nick Z.
Nov 16 '05 #2


I am making a paint program, and when drawing a line, I want a preview
of the line to be drawn. If the user does not like the line, then
restore back to the GraphicState before previewing the line.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.