aspose file tools
The moose likes Android and the fly likes Unexpected RGB values Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "Unexpected RGB values" Watch "Unexpected RGB values" New topic
Author

Unexpected RGB values

Sahil Reddy
Ranch Hand

Joined: Jan 24, 2011
Posts: 143
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



Regards
Aleksey Vladimirovich
Ranch Hand

Joined: Sep 05, 2012
Posts: 56
Try something like this:
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Unexpected RGB values
 
Similar Threads
Getting Pixel from int values (red green blue)
Java Advanced Imaging (JAI) Question
BufferedImage / getRGB - problem
Points on an Image
Is there a better way to blend colors when painting with Graphics2D?