Post Reply 
Image/ sketch in program
05-15-2023, 10:34 AM (This post was last modified: 05-15-2023 06:12 PM by Amer7.)
Post: #3
RE: Image/ sketch in program
(05-10-2023 03:36 PM)matalog Wrote:  Yeah, you can load a png to screen with G0:=AFiles("img.png") as long as that files exists in the application files, you can save it there before hand or put it there in the connection kit.

Of course you can also plot and draw on the calculator, you really should familiarise yourself with teh graphics section of the latest manual available at: https://literature.hpcalc.org/items/322 - around page 637 onwards.
Quote:PIXON_P, PIXON
Syntax: PIXON([G], x, y [ ,color])
Syntax: PIXON_P([G], x, y [ ,color])
Sets the color of the pixel in graphic variable G with coordinates (x,y) to the entered color. G can be any of the graphics variables and is optional. The default is G0, the current graphic.
The optional color can be any hexadecimal integer entered in the form aaRRGGBB. This is an RGB color with the alpha channel in the high order byte. The alpha channel numbers can be any integer between 0 (opaque) and 255 (transparent). If no color is specified, the default black is used.
there are commands for lines, arcs, rectangles, triangles, and text to screen etc.

G0 is the current graphic screen, G1 upwards are temporary graphics screens and you can copy between all of them with BLIT_P.

Have a good read through the manual :-).

Thank you for your reply, I will test it!

EDIT:
This works for me but in home screen G0:=AFiles("img.png")

But when I make a program to calculate a few things, and then Print them out.
EA:
LOCAL xa,ya,xb,yb,xc,yc;
xa:=4124.123;
ya:=1234.12;
xb:=2345.123;
yb:=6678.123;
xc:=8886.123;
yc:=4444.444;

y:=a1+b1;
PRINT("y= "+y);

G0:=AFiles("Y.png")
- Where the Y.png is a picture of " y= a1+b1; to be shown after the print is done or before...

( I want to use the picture as a reference, like I have a program with 8 inputs, and few calculations, I want to have the sketch displayed so I could see what is input 1, input2....input 8....)
I dont want to waste time going in gallery app and looking at the picture.


And when I use pixon after Print like
LOCAL y;
y:=a1+b1;
PRINT("y= "+y);
PIXON(xa,ya);
PIXON(xb,yb);
PIXON(xc,yc);

Only PRINT show up, no point drawing.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Image/ sketch in program - Amer7 - 05-10-2023, 10:25 AM
RE: Image/ sketch in program - matalog - 05-10-2023, 03:36 PM
RE: Image/ sketch in program - Amer7 - 05-15-2023 10:34 AM
RE: Image/ sketch in program - Amer7 - 05-17-2023, 11:30 AM
RE: Image/ sketch in program - matalog - 05-17-2023, 07:28 PM
RE: Image/ sketch in program - matalog - 05-17-2023, 07:27 PM
RE: Image/ sketch in program - Amer7 - 05-18-2023, 05:21 PM
RE: Image/ sketch in program - matalog - 05-18-2023, 10:10 PM
RE: Image/ sketch in program - Amer7 - 05-24-2023, 08:03 PM
RE: Image/ sketch in program - matalog - 05-24-2023, 10:24 PM
RE: Image/ sketch in program - Amer7 - 05-25-2023, 11:18 AM
RE: Image/ sketch in program - matalog - 05-25-2023, 12:37 PM



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