Post Reply 
Beginner Questions
05-06-2019, 04:57 AM
Post: #14
RE: Beginner Questions
Hello,

ICON is an "old" keyword and although it still works, it is NOT the best solution to the problems of using graphics on Prime.

Use graphical files instead (jpg or png).
png is a looseness compression. This means that when you save an image as a png and then reload it, the reloaded image is exactly the same as when you saved it.
jpg DOES loose data upon compression. This means that if you look at a file that you saved, they are some differences with what you had originally. In theory, the differences are very small and barely detectable by human eye on "real world images" such as pictures (with shades of color and gentle gradians).
jpg files are smaller (in memory size) for a given image than png.

It is important to understand this to be choose the right storage format.
Pictures like images are best saved as jpg. pictures with sharp edges or small features (like sprites, which are small drawing used for animation in games and the like) are better saved as png.


Now, if you are ON the calculator and do NOT have a computer, you can, as Han pointed out, create and use such files.
G1 to G9 are "graphical" buffers that are in the calculator and that you can use for this purpose.
You can dimention them (DIMGROB_P) draw on them with all the drawing functions and SAVE Them to file (AFiles("screenshot.png"):=G1 to save G1 into screenshot.png). the file extention here indicate the file type; png or jpg.
you can reload them the other way around doing G1:=AFiles("screenshot.png")

Unfortunately, graphical buffers are LIMITED to 9 (G1 to G9), so if you create something like a game, you usually need MORE than 9 images. for example, you have a number of sprites for all the graphical elements of you game.
In this case, the "standard" sollution is to save ALL these elements in a single image and then use the BLIT_P function to draw selected parts of the source graphic corresponding to various images.

Hope that this helps your friend.

Cyrille

Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Beginner Questions - Carissa - 03-30-2019, 07:48 PM
RE: Beginner Questions - Jean-Michel - 03-31-2019, 09:26 PM
RE: Beginner Questions - Tim Wessman - 04-01-2019, 03:12 AM
RE: Beginner Questions - Carissa - 04-01-2019, 09:35 PM
RE: Beginner Questions - cdmackay - 04-01-2019, 10:28 PM
RE: Beginner Questions - Carissa - 04-01-2019, 10:37 PM
RE: Beginner Questions - Carissa - 04-26-2019, 10:48 PM
RE: Beginner Questions - Giancarlo - 04-26-2019, 10:56 PM
RE: Beginner Questions - Carissa - 04-28-2019, 12:09 AM
RE: Beginner Questions - Carissa - 05-03-2019, 08:33 AM
RE: Beginner Questions - Eddie W. Shore - 05-03-2019, 02:04 PM
RE: Beginner Questions - Han - 05-04-2019, 12:30 AM
RE: Beginner Questions - cyrille de brébisson - 05-06-2019 04:57 AM
RE: Beginner Questions - Carissa - 05-06-2019, 10:02 AM
RE: Beginner Questions - Carissa - 05-07-2019, 10:24 AM
RE: Beginner Questions - Han - 05-08-2019, 02:15 PM
RE: Beginner Questions - Carissa - 05-09-2019, 07:02 PM
RE: Beginner Questions - Han - 05-10-2019, 02:40 PM
RE: Beginner Questions - Carissa - 05-13-2019, 06:33 PM
RE: Beginner Questions - TI89 - 05-14-2019, 06:05 AM
RE: Beginner Questions - Joe Horn - 05-14-2019, 05:55 PM
RE: Beginner Questions - TI89 - 05-14-2019, 06:33 PM
RE: Beginner Questions - DrD - 05-14-2019, 06:36 PM
RE: Beginner Questions - roadrunner - 05-14-2019, 08:52 PM
RE: Beginner Questions - TI89 - 05-14-2019, 10:40 PM
RE: Beginner Questions - leprechaun - 05-21-2019, 06:49 AM
RE: Beginner Questions - Carissa - 05-22-2019, 06:51 AM
RE: Beginner Questions - Carissa - 05-25-2019, 02:59 PM
RE: Beginner Questions - Carissa - 05-30-2019, 10:38 PM
RE: Beginner Questions - DrD - 05-31-2019, 08:54 AM
RE: Beginner Questions - Carissa - 06-01-2019, 08:32 AM
RE: Beginner Questions - Carissa - 06-20-2019, 03:26 PM
RE: Beginner Questions - roadrunner - 07-22-2019, 06:45 PM
RE: Beginner Questions - Carissa - 07-28-2019, 11:16 AM
RE: Beginner Questions - Carissa - 10-25-2022, 05:49 PM
RE: Beginner Questions - ijabbott - 10-25-2022, 08:04 PM
RE: Beginner Questions - cdmackay - 10-28-2022, 03:20 AM
RE: Beginner Questions - Ioncubekh - 10-25-2022, 06:05 PM



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