Post Reply 
saving a graph on the hp prime
12-26-2016, 05:39 PM
Post: #4
RE: saving a graph on the hp prime
Very interesting Han!
I did not know these possibilities of Afiles.

May I ask you: has it a special advantage to create a png file, instead of a file without extention or e.g. jpg?

Some remarks.
When you do these things in Home view you will not get the image you want because in Home view G0 contains the History of Home view and not the Plot view of the Geometry app, which we are interested in.

So we can only assign G0, which contains the Plot view of the geometry app, to the file: currentscreen.png, inside a program.

This program would look like:
Code:

EXPORT savescreen()
BEGIN
   STARTAPP(“Geometry”); // starts the geometry app
   STARTVIEW(1,1);    //starts the Plot view of the geometry app
   Geometry.AFiles("currentscreen.png"):=G0;
END;

We can make the stored image visible with this program:
Code:

EXPORT showimage()
BEGIN
   G0:=Geometry.AFiles("currentscreen.png");
   FREEZE;
END;

But I think a better way to save the results is simply to make a copy of the Geometry app:
Press Apps.
Long press the Geometry app.
Press save, give it a name and you have a copy of it.

This has the advantage that you do not only have saved the graph but also the instructions and formulas which created it, so that you can easily modify it.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: saving a graph on the hp prime - Han - 12-24-2016, 02:30 AM
RE: saving a graph on the hp prime - Jan_D - 12-26-2016 05:39 PM
RE: saving a graph on the hp prime - Jan_D - 01-02-2017, 05:33 PM



User(s) browsing this thread: 4 Guest(s)