ICON command - 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: ICON command (/thread-113.html) |
ICON command - eried - 12-15-2013 10:13 PM Anyone can tell me how the png encoding for the ICON command works? It seems the generated png from DIMGrob is 8 bits, all transparent? RE: ICON command - Han - 12-15-2013 10:28 PM Such a tiny screenshot… Anyway, the data is simply a hex dump of the PNG, with a leading "magic" number: 89 50 4e 47 0d 0a 1a 0a RE: ICON command - eried - 12-15-2013 10:46 PM Correct, but how it is this png data generated. I tried with 8,16,32 bits encodings and no one seems to match the output. In fact, if you create a file using the DIMGROB data, the file is not a proper png (is it a transparent canvas for the png editors I tried) RE: ICON command - Tim Wessman - 12-15-2013 11:21 PM Basically, there was not the option we needed to represent our internal screen data. Thus we basically hijacked a 16 bit grey scale to hold the data. What you are probably seeing is the color data represented as 1 RGBt 5551 encoded by the PNG library as a 16 bit per greyscale, and then post processed back into color on the other end. Cyrille might be able to provide more info here if that doesn't get you enough. Note that is is highly likely that the "ICON" keyword will be refined/changed before long and so the exact syntax and similar is not locked yet. RE: ICON command - cyrille de brébisson - 12-16-2013 07:14 AM Hello, The png is a normal a 8 bit per channel encoded picture... Strangely, not every picture program seems to be able to read/open it... Paint shop pro has no issues... Cyrille RE: ICON command - ArielPalazzesi - 12-16-2013 10:49 AM Hello! Does anyone know where you can download the program DIMGROBHelper.exe? TIA, Ariel RE: ICON command - cyrille de brébisson - 12-17-2013 06:58 AM here! RE: ICON command - eried - 12-17-2013 11:52 AM (12-17-2013 06:58 AM)cyrille de brébisson Wrote: here! 'Get picture from text' does not work in that version, the other one without the ICON things works properly. And the png encoding isn't normal, maybe paint shop pro is doing something out of the ordinary. I will check this later but I think 'icon' isn't reliable yet, I ended using dimgrob (even when it wastes more program space) |