Getting RGB data from Android bitmap

by Naveen » Sat, 15 May 2010 17:04:36 GMT

Sponsored Links

I need help on couple of issues .... Basically I want to capture
webpage from webview and get raster data of the bitmap.

To do so what I did is
                WebView m_browser;
 Picture picture = m_browser.capturePicture();
        Bitmap  b = Bitmap.createBitmap( picture.getWidth(),
        picture.getHeight(), Bitmap.Config.ARGB_8888);
        Canvas c = new Canvas( b );
        picture.draw( c );

Issue 1: Out of memmory exception when web page is big for eg. 
What should I do to get this image? Is it possible to get image in
multiple bitmaps?

Issue 2: How can i get RGB data 24 bit data from ARGB_8888. I need to
get this 24 bit Raster data compress it with some compression and
process it...

Thanks in advance


Getting RGB data from Android bitmap

by Naveen » Mon, 17 May 2010 14:12:21 GMT

 Any help pls. on my query?


Sponsored Links

Getting RGB data from Android bitmap

by skink » Mon, 17 May 2010 15:26:18 GMT


if your image is too big create smaller one, for example two times

  WebView browser;
  Picture p = browser.capturePicture();
  Bitmap b = Bitmap.createBitmap( p.getWidth() / 2, p.getHeight() /
2, Bitmap.Config.ARGB_8888);
    Canvas c = new Canvas(b);
    c.scale(0.5, 0.5);



Other Threads

1. using Pmem in skia image decoding

Hello all,

I have a hardware which requires contiguous memory for decoding. I wnat to
use it for decoding. Can I use Pmem to do this ? Are the buffers passed to
an ondecode function of SkImageDecoder_* ()  from pmem nad can I use them
directly ?

with regards vishal


2. how can I retrieve the list from the PHP DataBase

Hi Every One

Is there any Method To retrive the list from the Php Database

I need to retrice the 20 names fron the php server

how can i get that server
can any body help me regarding this ...

thanks in advance

3. "Apple iPhone Developers Mostly Do n鈥檛 Make Much Money"

4. help with MultiAutoCompleteTextView.

5. Animated window transitions in Android 1.5

6. Android built in Email application can not send attachment which type is not image/* or video/*?

7. concurrent audio playbacks through MIO