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. Chart API

Hi, I got a Mail from Google they would/could a App of mine if I
improve my Chart.
The Lady recommended to use:

but how do I implement that in Android? Any Experience in that, Demo
Code, whatever?



2. prting procedure for Android on SMDK2440 board

  with reference to the posting on the google group of <>,
Internet Access on ANDROID  as it is mentioned like* am working on SMDK2440
board. Android is up and running on the
target platform*. and as iam also working for the same but i want some
support like how to make to work android on the SMDK2440 board....can anyone
 please provide me the *Procedure to Load ANDROID OS on to the SMDK2440
board*.?and supported links if any..and is there any toolchains specific for
doing this...? please help me in this regard...

+91 9393858787


3. Changes in API in 1.5 - onFreeze and friends

4. fatal: Out of memory, malloc failed fatal: index-pack failed

5. Using Android on "old" palm and dell handhelds

6. standart c library

7. Help win ADC-2