This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.

• The following forms of padding can be specified:
 z an intensity value color a color (GrayLevel, RGBColor, etc.) {c1,c2,...} list of channel values Automatic automatic choice based on the boundary "Fixed" repetitions of the pixels on each boundary "Periodic" cyclic repetitions of the complete image "Reflected" reflections of the image in the boundary "Reversed" reversals of the complete image
• The padding value "Fixed" indicates that the rectangle of pixels added at each corner should be copies of the pixels at the corners of the original image.
• "Reversed" indicates that the outermost layer of pixels in the image should be repeated as the innermost layer of pixels in the padding. "Reflected" specifies that these pixels should not be repeated.
• ImagePad[image, ...] typically gives an image that has the same type as image. Padding a binary image with arbitrary intensity or color pixels typically returns an image of type "Real".
• ImagePad[image, -m] removes m pixels from each side of image.
Pad an image with 2 rows of orange pixels:
Pad with more rows, automatically determining the border color:
Pad by reflecting the rows and columns at the borders:
Pad an image by replicating rows and columns at the borders:
Pad by periodically repeating rows and columns:
Pad an image with 2 rows of orange pixels:
 Out[1]=
Pad with more rows, automatically determining the border color:
 Out[2]=

Pad by reflecting the rows and columns at the borders:
 Out[1]=

Pad an image by replicating rows and columns at the borders:
 Out[1]=

Pad by periodically repeating rows and columns:
 Out[1]=
Pad a grayscale image with a color:
New in 7