THotPDF.DecodeLoadedImageRegion Method
ロード済み画像 XObject ストリーム 1 つから、ソース座標で指定した矩形を正確にデコードし、呼び出し側が所有する TBitmap に格納します
宣言
function DecodeLoadedImageRegion(AImageStream: THPDFStreamObject;
RegionLeft, RegionTop, RegionRight, RegionBottom: Integer): TBitmap;
ユニット
HPDFDoc
パラメータ
| 名前 | 目的 |
|---|---|
AImageStream | Loaded image XObject stream to decode |
RegionLeft | Inclusive left source coordinate |
RegionTop | Inclusive top source coordinate |
RegionRight | Exclusive right source coordinate |
RegionBottom | Exclusive bottom source coordinate |
戻り値
クランプされた空でない領域を含む、新規割り当てのビットマップを返します。画像または要求されたジオメトリをデコードできない場合は nil を返します
使用上の注意
- Use this API with stream objects returned by loaded-document inspection workflows
- 座標はデコード後の画像の左上を原点とするラスター空間で表し、右端と下端の境界は含まれません
- 画像の範囲外の境界は、デコード前にクランプされます
- JPEG 2000 requests the native decoder region before pixel expansion
- This method preserves the region's full decoded resolution
- その他の対応画像フォーマットは通常どおりデコードされ、切り出した領域が正確に返されます
- ロード済みページのレンダラーは、クリップされた、または縮小された軸に平行な画像 XObject に対して、解像度を考慮したオーバーロードを自動的に使用します