this is my first question here; hope I'll be clear enough...
I've got this struct available
typedef struct COLORTRIPLE
{
  byte blue;
  byte green;
  byte red;
}
which is contained in another struct like that:
struct color_temp
{ 
  COLORTRIPLE color;
  int temp;
};
And (EDIT)
#define PIXEL(image, row, column)  \
    image.pixel [(row) * image.width + (column)]
is a macro.
So there will be PIXEL(bmpin,row,column).red, PIXEL(bmpin,row,column).green and PIXEL(bmpin,row,column).blue.
I need to scan a bitmap file pixel by pixel and check if the current pixel is equal to one color of the color_temp struct.
I tried something like:
if ((PIXEL(bmpin,row,column))==(map[n].color))
{...}
where
struct color_temp map[]
is a vector of color_temp.
But cygwin gcc says:
error:request for member 'color' in something not a struct or a union
Any suggestions?
Thanks
Mark
 
     
     
     
    