Image.pad Method¶
Module: Image
Definition¶
Add padding around the image
Only works for BGR 24 bits, RGB 24 bits and Grayscale 8bits images.
For grayscale image, the padding color is the red component.
void pad(int top, int left, int bottom, int right, int colorRed, int colorGreen, int colorBlue)
Parameters
top intin Padding on top.
left intin Padding on left.
bottom intin Padding on bottom.
right intin Padding on right.
colorRed intin Padding color red (from 0 to 255)
colorGreen intin Padding color green (from 0 to 255)
colorBlue intin Padding color blue (from 0 to 255)
Exceptions
An error has occurred during Face Library execution.