FingerImage.pad Method

Module: FingerImage

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

left int
in Padding on left.

bottom int
in Padding on bottom.

right int
in Padding on right.

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

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

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

Exceptions

An error has occurred during Finger Library execution.
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 Finger Library execution.
public 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 Finger Library execution.
public void pad(int top, int left, int bottom, int right, int colorRed, int colorGreen, int colorBlue) throws FingerException

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 Finger Library execution.
public func pad(top: Int32, left: Int32, bottom: Int32, right: Int32, colorRed: Int32, colorGreen: Int32, colorBlue: Int32) throws

Parameters

top Int32
in Padding on top.

left Int32
in Padding on left.

bottom Int32
in Padding on bottom.

right Int32
in Padding on right.

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

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

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

Exceptions

An error has occurred during Finger Library execution.
int id3FingerImage_Pad (
    ID3_FINGER_IMAGE hFingerImage,
    int top,
    int left,
    int bottom,
    int right,
    int colorRed,
    int colorGreen,
    int colorBlue)

Parameters

hFingerImage ID3_FINGER_IMAGE
in Handle to the FingerImage object.

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)

Returns

int
An error code.
See id3FingerError file for the list of possible error codes.