Hi all,

I am absolutely brand new to android programming, but I have a fair
amount of experience with 3D programming and games programming in
general and im trying to build a simple game in android.

The problem I am having is rather odd, but i'm hoping is a problem
with me rather than android. I have been using GetPixel and GetPixels
on a bitmap I have loaded through the bitmap factory. However when
cycling through the pixel data I seem to get incorrect results.

For example I made a simple 2x1 pixel image with one white pixel and
one red pixel just to ensure that colours where being read correctly,
but it seems that this is not the case. For starters the image was
read as a 1x1 pixel image with the colour values, presumably
interpolated between red and white...

This is a real problem for me as I need the exact value at each pixel.
Is there a way to get around this or is it just not viable?

Here is how the image is loaded:

Bitmap wImage = BitmapFactory.decodeResource(Globals.gResources,
pLevelRValue);

Thanks in advance guys.

-- 
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