Import JPEG images to HP Prime - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: Import JPEG images to HP Prime (/thread-13508.html) |
Import JPEG images to HP Prime - Eddie W. Shore - 08-24-2019 06:14 PM I received an email asking me how to import a JPG file to an HP Prime. They want to manipulate pixels and colors. I did this once years ago and I don't remember how to do this. Is there a way to covert an image to a workable program file? Thanks in advance. RE: Import JPEG images to HP Prime - Jacob Wall - 08-25-2019 08:48 PM You can use AFilesB for this. For example: L1:=AFilesB("image.jpg",0,1000); will places the first 1000 bytes of the JPG files into a list L1. I played around with PNG / Base64 stuff some time ago, which worked out very well in the end. Below is some of the code I currently use (created with help from others as shown in linked thread): Code: WriteBase64(fname) Example Use: Code: AFiles("tempPNG"):=G0; Maybe not quite the usage in mind, but some clues hopefully in there somewhere. RE: Import JPEG images to HP Prime - mandresve - 08-26-2019 12:26 AM Please, if you want, use my program called Gallery! Click Here! |