ReleaseCapturedPage
页面版面、资源管理
声明
Function TPDFlib.ReleaseCapturedPage(CaptureID: Integer): Integer;
描述
当调用方不再需要另一次放置时,使已捕获页面句柄失效并释放其临时描述符状态
已装入页面资源字典的 Form XObject 及其既有的 Do 调用在句柄释放后仍然有效
已释放的句柄不能再被绘制、配置或再次释放
参数
| CaptureID | 由 CapturePage, CapturePageEx, ImportPageAsFormXObject 或 EndFormXObject 返回的句柄 |
|---|
返回值
| 0 | 句柄无效或已被释放 |
|---|---|
| 1 | 临时捕获状态已成功释放 |
示例
CaptureID := PDF.EndFormXObject;
if CaptureID <> 0 then
begin
PDF.DrawCapturedPage(CaptureID, 20, 20, 120, 40);
PDF.ReleaseCapturedPage(CaptureID);
end;