pad

fun pad(top: Int, bottom: Int, left: Int, right: Int, color: Color = Color.BLACK): ImageOpPipeline

Pads an image, basically adding a border of n amount of pixels to each side with the given color

Parameters

top

Amount of pixels to add to top of the image, must be a non-negative value

bottom

Amount of pixels to add to bottom of the image, must be a non-negative value

left

Amount of pixels to add to left of the image, must be a non-negative value

right

Amount of pixels to add to right of the image, must be a non-negative value

color

The drawn border will be this color, defaults to Black