borderType (Padding Mode Enumerations)

Table 1 Padding modes

Parameter

Description

base.border_constant

Constant colorized border.

base.border_replicate

Last element replicated throughout.

For example, aaaaaa|a*****h|hhhhhhh (where * indicates any image element).

base.border_reflect

Reflection of border elements (included).

For example, ba|abc*******fgh|hg (where * indicates any image element).

base.border_reflect_101

Reflection of border elements (excluded).

For example, cb|abc****fgh|gf (where * indicates any image element).