close

change the pixel by the brightness

=====================================================================================

if ((r+BOffset) >= 255) WorkImage->Canvas->Pixels[x_][y_]= (TColor)RGB(255,g,b);

else if ((r+BOffset) 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) 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) 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...:~~~



-----


arrow
arrow
    全站熱搜
    創作者介紹
    創作者 questioner 的頭像
    questioner

    questioner

    questioner 發表在 痞客邦 留言(0) 人氣()