|
for ( int i=0;i<Image321->Bitmap->Height;i++ )
{
RGB = (RGBTRIPLE *)Image321->Bitmap->ScanLine[i];
for ( int j=0;j<Image321->Bitmap->Width;j++ )
{
R = RGB[j].rgbtRed;
G = RGB[j].rgbtGreen;
B = RGB[j].rgbtBlue;
if ( TColor(RGB(R,G,B)) == clWhite ) //Image1->Picture->Bitmap->TransparentColor )
continue;
/*if ( R > 255 ) R = 255;
if ( G > 255 ) G = 255;
if ( B > 255 ) B = 255; */
Add = Table[i][j] * Addx;
R = RGB[j].rgbtRed - Add;
G = RGB[j].rgbtGreen - Add;
B = RGB[j].rgbtBlue - Add;
if ( R <= 0 ) R = 1;
if ( G <= 0 ) G = 1;
if ( B <= 0 ) B = 1;
Image321->Canvas->Pixels[j][i] = TColor(RGB(R,G,B));
}
}
이렇게 하면, 기본 이미지는 남아 있고.
잔상하나 생기면서 그라데이션이 그 잔상에 생기네요;
왜 이런건가요?
|