By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,246 Members | 1,553 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,246 IT Pros & Developers. It's quick & easy.

how to save all my application's work.

P: 7
hi.....

can anybody tell me that how can i save my all application's work. mean that how can i save the images,circles,rectangle,lines or etl together..

if somebody knows it then plz explain me with some code...

i konw that image can be save via one of the Bitmap's method
i.e:
imageObj.Save(fileName);

but i want to save not only images , whole it(e.g: circles,rectangles,lines which a user is drawn on it) not a just an image.



plz dont send the source of anyother site because i m new commer .

if some body can explain this then do in it plz.

thx.........

--------------------------------------------------------------------------------
maifs
Sep 24 '08 #1
Share this Question
Share on Google+
2 Replies


P: 7
hi.....

can anybody tell me that how can i save my all application's work. mean that how can i save the images,circles,rectangle,lines or etl together..

if somebody knows it then plz explain me with some code...

i konw that image can be save via one of the Bitmap's method
i.e:
imageObj.Save(fileName);

but i want to save not only images , whole it(e.g: circles,rectangles,lines which a user is drawn on it) not a just an image.



plz dont send the source of anyother site because i m new commer .

if some body can explain this then do in it plz.

thx.........

--------------------------------------------------------------------------------
maifs
Sep 24 '08 #2

Expert 100+
P: 427
I take it you are looking for something which will store all the vectors independantly and allow you to edit the image at a later time?

I suggest that you create yourself a filetype, any extension which is not in use. You can then associate this file type with your application. You could simply dump a whole bunch of text data in the files e.g.

[square] NameOfInstance
[location] x,y co-ordiantes from which to start drawing
[length] length in pixels of the lines

Try something along those lines, your application can then read and re-draw the images by instantiating objects and assigning those values to the objects.

For more protection, you can encrypt the file before saving it to the local storage media.
Sep 24 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.