# pad method

void pad(

1. int top,
2. int left,
3. int bottom,
4. int right,
5. int colorRed,
6. int colorGreen,
7. int colorBlue

)

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 DocumentException An error has occurred during Document Library execution.

## Implementation

    void pad(int top, int left, int bottom, int right, int colorRed, int colorGreen, int colorBlue) {
      var err = documentSDK.id3DocumentImage_Pad(_pHandle.value, top, left, bottom, right, colorRed, colorGreen, colorBlue);
      if (err != DocumentError.success.value) {
        throw DocumentException(err);
      }
    }