Darkness
procedure Darkness( Bitmap:TBitmap; Amount: integer); var Wsk:^Byte; H,V: Integer; begin Bitmap.pixelformat:=pf24bit; for V:=0 to Bitmap.Height-1 do begin WSK:=Bitmap.ScanLine[V]; for H:=0 to Bitmap.Width*3-1 do begin Wsk^:=IntToByte(Wsk^-(Wsk^*Amount)div 255); inc(Wsk); end; end; end;