W
wyb_506
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.test;
var
btmap: TBitmap;
rect: TRect;
begin
rect.Left :=0;
rect.Top :=0;
rect.Right :=200;
rect.Bottom :=100;
btmap:=TBitmap.Create ;
if OpenPictureDialog1.Execute then
btmap.LoadFromFile(OpenPictureDialog1.FileName);
canvas.Brush.Bitmap:=btmap;
canvas.FillRect(rect);
end;
var
btmap: TBitmap;
rect: TRect;
begin
rect.Left :=0;
rect.Top :=0;
rect.Right :=200;
rect.Bottom :=100;
btmap:=TBitmap.Create ;
if OpenPictureDialog1.Execute then
btmap.LoadFromFile(OpenPictureDialog1.FileName);
canvas.Brush.Bitmap:=btmap;
canvas.FillRect(rect);
end;