padding
Function Usage
Image padding API of the ImageProcessor class. For details about the input and output formats and resolution ranges, see Padding.
For details about how to use this API, see Padding.
Prototype
1 | padding(inputImage: Image, padDim: Dim, color: Color, borderType: borderType) |
Input Parameters
Parameter |
Type |
Description |
|---|---|---|
inputImage |
Image class |
Image class before padding. |
padDim |
Dim class |
Padding size of the input image. |
color |
Color class |
3-channel colors for padding. This parameter is valid only when borderType is set to BORDER_CONSTANT. |
borderType |
borderType enumeration |
Padding mode. For details, see borderType (Padding Mode Enumerations). |
Response Parameters
Image class after padding
Exception Throwing Interface
If padding fails, a runtime exception is thrown.
Parent topic: ImageProcessor