//一个保存图片的例子
procedure TForm1.N3Click(Sender: TObject);
begin
form1.savedialog1.filter:='图片(*.jpg)|*.jpg|(*.*)|*.*';
if form1.savedialog1.execute then
form1.image1.picture.loadfromfile(form1.savedialog1.filename+'.bmp');
end;
procedure TMainForm.RAddClick(Sender: TObject);//红色分量增加,其他分量不便
var
p ByteArray;
x,y :Integer;
Bmp :TBitmap;
begin
Bmp :=TBitmap.Create;
Bmp.Assign(ChildForm.Image1.Picture.Bitmap);
Bmp.PixelFormat :=pf24Bit;//24位的位图
for y:=0 to Bmp.Height-1 do
begin
p:=Bmp.scanline[y];
for x:=0 to Bmp.Width-1 do
begin
if p[x*3+2] <245 then
begin
p[x*3+2]:=p[x*3+2]+10;
end;
end ;