Is there any possible way to access pixel data on bitmaps (maybe through the NDA-protected SDK)? I am making an app that has to generate real-time charts on an roScreen through bitmaps, but it seems I’m strictly limited to lines and boxes. Doesn’t really bode well for pie charts, etc.
I’m also open to any “hacky” ways of doing this. Any hints would be appreciated.
I would think it should be possible to create pie charts on the newer firmware devices without that, using some ingenuity and DrawRotatedObject().
However:
ifDraw2d supports GetByteArray
GetByteArray(x as Integer, y as Integer, width as Integer, height as Integer) as Object
Returns an roByteArray representing the 32 bit RGBA pixel values for the rectangle described by the parameters
so if you really want to, you could probably iterate over that, write it to tmp:/using ifByteArray and read it back in as a new image file.
Also, you might look at LibRokuDev which has some png manipulation functions.