Solved

Save Load line in a canvas

Posted on 1998-06-16
2
167 Views
Last Modified: 2006-11-17
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
Comment
Question by:carlfortin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Author Comment

by:carlfortin
ID: 1223286
Edited text of question
0
 
LVL 5

Accepted Solution

by:
msmolyak earned 50 total points
ID: 1223287
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question