Hi,

I'm a little bit puzzled about the way Android treats ARG colors on
devices which seemingly support 24bpp color depth (Desire, Hero).

I've tried to draw smooth gradients like this:

                        Paint mPaint = new Paint();

                        // Draw reds
                        for (int x = 0; x < 256; ++x) {
                                mPaint.setColor(Color.argb(255,x,0,0));
                                canvas.drawLine(x+20 , 20, x+20 , 70, mPaint);
                        }

This doesn't draw a smooth gradient but a RGB_565 version of the red
gradient on the Desire(32bpp?) and on the Android emulator (16bpp).

Albeit, as far as I can tell, there should be a way to draw this in a
smooth way on the Desire:

1. On my HTC Desire I found, that apparently the framebuffer runs at
32bpp color depth:

  $ cat /sys/devices/platform/msm_panel.0/graphics/fb0/bits_per_pixel
  32

2. There's a claim that "The Nexus I, however, has a feature that
allows the system to use modes of both 5-6-5 bit or 8 bit color depth
depending on the image and the designer’s choice." [1]

The suggested method of touching the image to see a higher color depth
image seems to work in the gallery application on the Desire, too.

So how do I tell the device to use 8-8-8 bit color depth for
displaying the color bar?

Kind regards,

Felix

[1] 
http://www.oled-display.net/oled-association-analyse-google-nexus-one-oled-display-shoot-out


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to