[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 175
  • Last Modified:

Save Load line in a canvas

How can I save/load my drawing. I have a program to draw chart but I would like to save the chart in a file
0
carlfortin
Asked:
carlfortin
1 Solution
 
carlfortinAuthor Commented:
Edited text of question
0
 
msmolyakCommented:
What exactly is your chart? Or rather what do you mean by saving the chart? If the chart is produced by the code in your class then you can always recreate it by using the same code. If the chart is a GIF file you can save it on disk by writing a file and then reading it back. If there is some data for a chart which a stored in some object you can serialize the object and then restore it. Or you can print a chart to a file (but then you won't be able to load it back).

Pick your choice.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now