03-23-2012 03:51 PM
Hi there,
I am using an embedded camera to take photos. To operate it i send commands to it via the serial interface. I have received all of the image data back through the serial port and can view it as hex data in a string. The image data is 16bit colour RAW data at 160x120 resolution meaning i have 38400 bytes of data (160x120 = 19200. 19200*16 = 307200. 307200/8 = 38400). I want to be able to display this data as a picture, but cannot figure out how to do it. Can someone please point me in the right direction? i have been fiddling about with lots of the pixmap functions but no luck. Do i need to put this data in to a 2D array first?
03-23-2012 04:52 PM
Yes, first convert it into a 2D array of pixel values. From there you can convert it into an image to display it in a picture control.
Mike...
03-24-2012 04:33 PM
thanks,
i'll give it a go!