I want to get the Color of a pixel in a Bitmap. For that normally I use GetPixel(x,y). But with Android.Graphics that method gives me an int representing the Color. So I need to know how can I get this Color from that integer.
In fact that is what I want to do finaly (a white removal in the mPlan):
for (int x=0; x < PlanWidth; x++)
{
for (int y=0; y < PlanHeight; y++)
{
if (mPlan.GetPixel(x, y) == Color.White)
mPlan.SetPixel(x, y, (Color.White - mPlan.GetPixel(x, y)));
}
}
Color.White
is int – Sergey GlotovColor.White.ToArgb()
? You can convert Color.White to int instead of each GetPixel() result – Sergey Glotov