Skip to content

Tag: rgb

getRGB throws error when trying to get the color of coordinates of an image

I have been searching for ways to get the color of a coordinate (x, y) of an image. I have an image, Image depthImage = mActivityTestRule.getActivity().getDepthImage();, and I would like to do that, by giving the coordinates. My project is an ARCore project (git clone One solution that I found is but the expression getRGB is highlighted in red.

Convert RGB to HSV in android

I want to get the ARGB values from a pixel and convert to HSV and then set the pixel with the new values. I don’t fully understand how to do that. Can anyone help me? Answer Let’s say you have a Bitmap object and x and y co-ordinates. You can get the color from the bitmap as a 32-bit value