THotPDF.DecodeLoadedImageStream Method
方法摘要: THotPDF.DecodeLoadedImageStream MethodTBitmap, including supported filter and color-space processing
宣告
function DecodeLoadedImageStream(AImageStream: THPDFStreamObject): TBitmap;
單元
HPDFDoc
參數
| 名稱 | 用途 |
|---|---|
AImageStream | 含有影像資料的已載入 PDF 串流物件 |
傳回值
存放解碼後影像的點陣圖TBitmap on success or nil when the image format or geometry is unsupported
使用說明
- 搭配已載入文件檢視工作流程傳回的串流物件使用這個 API
- 傳回的點陣圖實例由呼叫端負責釋放
DecodeParmsorDP - LZW decoding honours
EarlyChangeand rejects invalid dictionary transitions instead of treating compressed bytes as pixels - TIFF Predictor 2 and PNG predictors 10 through 15 are supported for complete rows with valid image geometry
- Width, height, component count, bit depth, row size, and output size are checked before raster allocation
- Malformed Flate, LZW, or predictor data raises its decoding exception so callers can distinguish corruption from an unsupported image format
- Use
ExtractLoadedImagewhen selecting images by the index returned from loaded-image enumeration
相關 API
- THotPDF
- THotPDF.GetLoadedImageCount Method
- THotPDF.GetLoadedImageInfo Method
- THotPDF.ExtractLoadedImage Method