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 int
in Padding on top.

left int
in Padding on left.

bottom int
in Padding on bottom.

right int
in Padding on right.

colorRed int
in Padding color red (from 0 to 255)

colorGreen int
in Padding color green (from 0 to 255)

colorBlue int
in Padding color blue (from 0 to 255)

Exceptions

An error has occurred during Face Library execution.