change the pixel by the brightness ===================================================================================== if ((r+BOffset) >= 255) WorkImage->Canvas->Pixels[x_][y_]= (TColor)RGB(255,g,b); else if ((r+BOffset) <= 0) WorkImage->Canvas->Pixels[x_][y_]= (TColor)RGB(0,g,b); else WorkImage->Canvas->Pixels[x_][y_] = (TColor)RGB(r+BOffset,g,b); if ((g+BOffset) >= 255) WorkImage->Canvas->Pixels[x_][y_]= (TColor)RGB(r,255,b); else if ((g+BOffset) <= 0) WorkImage->Canvas->Pixels[x_][y_]= (TColor)RGB(r,0,b); else WorkImage->Canvas->Pixels[x_][y_] = (TColor)RGB(r,g+BOffset,b); if ((b+BOffset) >= 255) WorkImage->Canvas->Pixels[x_][y_]= (TColor)RGB(r,g,255); else if ((b+BOffset) <= 0) WorkImage->Canvas->Pixels[x_][y_]= (TColor)RGB(r,g,0); else WorkImage->Canvas->Pixels[x_][y_] = (TColor)RGB(r,g,b+BOffset); ===================================================================================== The bug is -the pixel will be only in one color represation...:~~~
------ Apr 19 Wed 2006 06:15
-
Bug:"Catch me, if you can."
請先 登入 以發表留言。