月
月冷无痕
Unregistered / Unconfirmed
GUEST, unregistred user!
var
rc: Trect;
bmp: Tbitmap;
begin
bmp:= Tbitmap.Create;
bmp.LoadFromFile('e:/bmp.bmp');
rc := Rect(0,0,100,20);
bmp.Canvas.Brush.Style := bssolid;
bmp.Canvas.Brush.Color := clred;
bmp.Canvas.FillRect(rc);
image1.Canvas.CopyRect(bmp.Canvas.ClipRect,bmp.Canvas,bmp.Canvas.ClipRect);
image1.Refresh;
end;
rc: Trect;
bmp: Tbitmap;
begin
bmp:= Tbitmap.Create;
bmp.LoadFromFile('e:/bmp.bmp');
rc := Rect(0,0,100,20);
bmp.Canvas.Brush.Style := bssolid;
bmp.Canvas.Brush.Color := clred;
bmp.Canvas.FillRect(rc);
image1.Canvas.CopyRect(bmp.Canvas.ClipRect,bmp.Canvas,bmp.Canvas.ClipRect);
image1.Refresh;
end;