procedure Flaxen( Bitmap:TBitmap);
var
H,V:Integer;
WSK,WSK2,WSK3:^TRGBTriple;
begin
Bitmap.PixelFormat:=pf24bit;
for V:=0 to Bitmap.Height-1 do
begin
Wsk:=Bitmap.ScanLine[V];
Wsk2:=Wsk;
Wsk3:=Wsk;
inc(Wsk2);
inc(Wsk3,2);
for H:=0 to Bitmap.Width -1 do
begin
Wsk.rgbtRed := (Wsk.rgbtRed + Wsk2.rgbtGreen +
Wsk3.rgbtBlue) div 3;
Wsk2.rgbtGreen := (Wsk.rgbtGreen + Wsk2.rgbtGreen +
Wsk3.rgbtBlue) div 3;
Wsk2.rgbtBlue := (Wsk.rgbtBlue + Wsk2.rgbtGreen +
Wsk3.rgbtBlue) div 3;
inc(Wsk);inc(Wsk2);inc(Wsk3);
end;
end;
end;