Ok here is the problem... I have a functions that calls the following:

Code:

for (x=1; x < pict.getWidth()-1; x++) {
for (y=1; y < pict.getHeight()-1; y++) {
Color sum(0,0,0);
for (int i=x-1, m=0; i <= x+1; i++, m++) {
for (int j=y-1, n=0; j <= y+1; j++, n++) {
sum = sum.add( pict.getPixel(i,j).times( matrix[m][n] ) ); ///THIS LINE IS WHERE THE PROBLEM COMES FROM
}
}
temp.setPixel(x, y, sum.divide( denom ) );
}
}

now, I can't get the proper declaration for 'add', here is what I have for that class:

Code:

class Color
{
public:
// Define constructors ...
Color(int r, int g, int b);
Color();
// Define functions to do the following to a color:
// add, subtract, times, divide, complement (subtract from 255),
// constrain (ensure values are between 0 and 255)
Color add( Color c)
{
return Color( r + c.r,
g + c.g,
b + c.b );
}
Color sum();
void subtract();
void times(int matrix);
void complement();
void constrain();
void devide();
// Define functions to get the values of r, g, and b
char red() { return r; };
char green() { return g; };
char blue() { return b; };
private:
// Define r, g, b, as int
int r, g, b;
int height;
};

and just for completenes...here is the error I get:

Code:

c:\windows\desktop\image\imagemanip.cpp(376) : error C2664: 'add' : cannot convert
parameter 1 from 'void' to 'class Color'

I know I'm overlooking something that is quite simple...any suggestions?

axon