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.
1 | padding(inputImage: Image, padDim: Dim, color: Color, borderType: borderType) |
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). |
Image class after padding
If padding fails, a runtime exception is thrown.