THotPDF.DecodeLoadedImageStream Method
TBitmapResumen del método: THotPDF.DecodeLoadedImageStream Method
Declaración
function DecodeLoadedImageStream(AImageStream: THPDFStreamObject): TBitmap;
Unidad
HPDFDoc
Parámetros
| Nombre | Propósito |
|---|---|
AImageStream | Loaded PDF stream object containing image data |
Valor de retorno
TBitmap on success or nilBitmap containing the decoded image
Notas de uso
- Use this API with stream objects returned by loaded-document inspection workflows
- Flate and LZW streams apply predictor geometry from
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
APIs relacionadas
- THotPDF
- THotPDF.GetLoadedImageCount Method
- THotPDF.GetLoadedImageInfo Method
- THotPDF.ExtractLoadedImage Method