procedure DrawBitmap(ATarget: TCanvas; ASource: TGraphic);
var
mfPrint: TMetafile;
mfCanvas: TMetafileCanvas;
begin
mfPrint := TMetafile.Create;
try
mfCanvas := TMetafileCanvas.Create(mfPrint, 0);
Try
mfCanvas.Draw(0, 0, ASource);
finally
mfCanvas.Free;
end;
ATarget.Draw(0, 0, mfPrint);
finally
mfPrint.Free;
end;
end;
var
mfPrint: TMetafile;
mfCanvas: TMetafileCanvas;
begin
mfPrint := TMetafile.Create;
try
mfCanvas := TMetafileCanvas.Create(mfPrint, 0);
Try
mfCanvas.Draw(0, 0, ASource);
finally
mfCanvas.Free;
end;
ATarget.Draw(0, 0, mfPrint);
finally
mfPrint.Free;
end;
end;
'Windows > RAD Studio' 카테고리의 다른 글
[BCB] TEdit 에서 숫자 입력만 허용 (0) | 2009.04.19 |
---|---|
[RAD] How to customize the new window of TWebBrowser(TCppWebBrowser) (0) | 2009.04.17 |
[RAD] TEdit 의 기본 팝업 동작하기 (0) | 2009.04.01 |
[RAD] Package 에 RES 포함시키기 (0) | 2008.07.24 |
[RAD] Window procedure 메세지 처리 순서 (0) | 2008.07.02 |