File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Android and the fly likes Unexpected RGB values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Unexpected RGB values" Watch "Unexpected RGB values" New topic

Unexpected RGB values

Sahil Reddy
Ranch Hand

Joined: Jan 24, 2011
Posts: 145
Hello Savvy pals

I made one RED vertical line in mspaint with .bmp extension. I tried finding values of RGB components in Android Programatically. I expected results to be just 255,0,0 for RGB components.
But i get many other values as well. Please let me know where i am doing wrong....

Here is the formula i used

Aleksey Vladimirovich
Ranch Hand

Joined: Sep 05, 2012
Posts: 56
Try something like this:
I agree. Here's the link:
subject: Unexpected RGB values
It's not a secret anymore!