Q
qd.pd
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TFMain.ToolButton20Click(Sender: TObject);
var ARECT1,ARECT2: TRECT;
bitmap:TBitmap;
i :integer;
ix,iy,iwidth,iheight :integer;
kk: array of timage;
begin
qryPicPos.close;
qryPicPos.SQL.Clear;
qryPicPos.SQL.Add('select * from tDepartInfo');
qryPicPos.Open;
SetLength(kk , qryPicPos.RecordCount);
i := 0;
while not qryPicPos.Eof do
begin
kk := timage.Create(PlMain);
kk.Parent := PlMain;
ix := qryPicPos.fieldbyname('PicX').AsInteger;
iy := qryPicPos.fieldbyname('PicY').AsInteger;
ImgMain.Canvas.CopyRect(RECT(ix,iy,ix+kk.width,iy+kk.Height),imgs.Canvas,RECT(0,0,kk.width,kk.Height));
qryPicPos.Next;
i := i + 1;
end;
ImgMain.Picture.SaveToFile('d:/qiye/eight.bmp')
end;
var ARECT1,ARECT2: TRECT;
bitmap:TBitmap;
i :integer;
ix,iy,iwidth,iheight :integer;
kk: array of timage;
begin
qryPicPos.close;
qryPicPos.SQL.Clear;
qryPicPos.SQL.Add('select * from tDepartInfo');
qryPicPos.Open;
SetLength(kk , qryPicPos.RecordCount);
i := 0;
while not qryPicPos.Eof do
begin
kk := timage.Create(PlMain);
kk.Parent := PlMain;
ix := qryPicPos.fieldbyname('PicX').AsInteger;
iy := qryPicPos.fieldbyname('PicY').AsInteger;
ImgMain.Canvas.CopyRect(RECT(ix,iy,ix+kk.width,iy+kk.Height),imgs.Canvas,RECT(0,0,kk.width,kk.Height));
qryPicPos.Next;
i := i + 1;
end;
ImgMain.Picture.SaveToFile('d:/qiye/eight.bmp')
end;