CaptureImage.pad Method¶
Module: CaptureImage
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.
pad(self, top: int, left: int, bottom: int, right: int, color_red: int, color_green: int, color_blue: int) -> None
Parameters
top
intin Padding on top.left
intin Padding on left.bottom
intin Padding on bottom.right
intin Padding on right.color_red
intin Padding color red (from 0 to 255)color_green
intin Padding color green (from 0 to 255)color_blue
intin Padding color blue (from 0 to 255)
Exceptions
An error has occurred during Devices Library execution.
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 Devices Library execution.
public 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 Devices Library execution.
public void pad(int top, int left, int bottom, int right, int colorRed, int colorGreen, int colorBlue) throws DevicesException
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 Devices Library execution.
int id3DevicesCaptureImage_Pad (
ID3_DEVICES_CAPTURE_IMAGE hCaptureImage,
int top,
int left,
int bottom,
int right,
int colorRed,
int colorGreen,
int colorBlue)
Parameters
hCaptureImage
ID3_DEVICES_CAPTURE_IMAGEin Handle to the CaptureImage object.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)
Returns