pad method
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.
param top Padding on top. param left Padding on left. param bottom Padding on bottom. param right Padding on right. param colorRed Padding color red (from 0 to 255) param colorGreen Padding color green (from 0 to 255) param colorBlue Padding color blue (from 0 to 255) throws FaceException An error has occurred during Face Library execution.
Implementation
void pad(int top, int left, int bottom, int right, int colorRed, int colorGreen, int colorBlue) {
var err = faceSDK.id3FaceImage_Pad(_pHandle.value, top, left, bottom, right, colorRed, colorGreen, colorBlue);
if (err != FaceError.success.value) {
throw FaceException(err);
}
}