Hello all!
I am trying to find a way to get the DM42 to display pictures (process a bitmap image in some way and upload the result onto the DM42).
(eventually, I'd like to plot some basic coastline maps at large scale)
I imagined several possibilities (using a matrix for storing the pixels,etc.) but as far as I know, it is only possible to transfer programs as .raw files.
With that in mind, I wrote a python script to read one of the OFFIMG (matterhon.bmp) and basically it is translated to a large (very large) program that looks like:
Code: Select all
LBL "Image"
CLLCD
3
170
PIXEL
3
172
PIXEL
...
It loads fine on Free42. It also runs fine on Free42 (even if most pixels coordinates are off its tiny screen...)
Then, I tried on the DM42:
1) the encoder/decoder page fails to process the 45900+ lines: Status: HTTP response code 500 (Internal Server Error)
2) using the 146K .raw file exported from Free42, I get the following error on the DM42:
Code: Select all
Unhandled memory allocation:
Unhandled memory allocation fail file:
../common/core_globals.cc
at line 2012
size 25088
Press EXIT to RESET the calculator...
My questions are:
1) Am I doing something wrong?
2) What should I do to fix that?
3) Can you think of a better/more effective/working way of display pictures?
Best regards,
nibheis