hey all,
im a dutch student and for a project I am responsible for the pc application. we are making a paint application, the picture that are drawed are saved in a bitmap so I can use the getpixel() function to get the collors form the image. the size of the pencil is 3 times as big as i should be, so i read out 1 out of 3 pixels, so the size of my image will be good for our lcd screen.
now I got a problem, in the loop were I use the getpixel() I keep getting the error: "Only assignment, call, increment, decrement, and new object expressions can be used as a statement"
Color kleur;
int x = 0;
int y = 0;
for (x <= 384; y < 155; )
{
kleur = b.GetPixel(x, y) ;
y = y + 3;
if (y > 155)
{
y = 0;
x = x + 3;
}
(I get the error over : x <= 384; )
Can anyone help me....?
kind regards,
Niels de Zaaijer