decode(inputPath, decodeFormat)
Function Usage
Image decoding API of the ImageProcessor class. For details about the input and output formats, resolution ranges, and alignment modes, see Decode.
Input Parameter Description
Parameter |
Type |
Description |
|---|---|---|
inputPath |
str |
Path of the image to be decoded |
decodeFormat |
image_format enumerations |
Format of the decoded image. (For PNG images, this parameter does not need to be set.) |
Return Parameter Description
Returns the decoded Image class.
Exception Throwing Interface
If the image path and decoding format are incorrect, or the decoding fails, a runtime exception occurs.
Parent topic: ImageProcessor