GDI, int and Color

  • Thread starter Thread starter RicercatoreSbadato
  • Start date Start date
R

RicercatoreSbadato

I would like to do

int accumulator = (int) bitmap.GetPixel(x,y);

but it is unable to do the casting from the Color to the int. How can I
do?
 
RicercatoreSbadato said:
I would like to do

int accumulator = (int) bitmap.GetPixel(x,y);

but it is unable to do the casting from the Color to the int. How can I
do?

int accumulator = bitmap.GetPixel(x,y).ToArgb();
 
Back
Top