1
I am developing an application on Android. I need to get the RGB of a certain image in 5 specific points of the image. as shown below:
I am using the following code to capture the image RGB:
int color = bitmap.getPixel(x, y);
int red = Color.red(color);
int blue = Color.blue(color);
int green = Color.green(color);
int alpha = Color.alpha(color);
The points defined in the illustration above are just an example!
I imagine that to determine the point I want to get the RGB, that is, the points set by me, i need to know what the dimensions of an image.
My point is:
- How can I capture the dimensions of an image? That is, its dimensions in width and height?
https://developer.android.com/training/material/palette-colors.html
– itscorey