PDA

View Full Version : Byte array of Image container



chetan.nellekeri
29 Oct 2013, 5:36 AM
46606

Hi,
As in above image, I have an requirement to display multiple images. As shown above there are three images.
I am using xtype: container and xtype: image to display this...
I need to get the byte array entire diagram and send to service.. How this is possible...?

steffenk
29 Oct 2013, 8:12 AM
You can't get the image data from this, as the browser renders the image.

The only way to do so is to render the image in a canvas and then you can use functions like getImageData() to extract, see
http://phoboslab.org/log/2012/09/drawing-pixels-is-hard