THotPDF.AcquireLoadedImageRegionAtResolution Method

以要求的輸出解析度解碼或重用已載入的影像區域,並傳回不可變的共用 handle

宣告

function AcquireLoadedImageRegionAtResolution(
  AImageStream: THPDFStreamObject;
  RegionLeft, RegionTop, RegionRight, RegionBottom,
  TargetPixelWidth, TargetPixelHeight: Integer): IHPDFDecodedBitmapHandle;

參數

區域座標選取來源像素,目標尺寸則決定解碼後的輸出大小

傳回值

傳回具參照計數的已解碼點陣圖 handle;邊界無效或影像不受支援時傳回 nil

效能

區域幾何與目標解析度是快取鍵的一部分,暖快取命中時完全不需要複製已解碼點陣圖

相關 API

IHPDFDecodedBitmapHandle · DecodeLoadedImageRegionAtResolutionCached