ImagePad
class ImagePad(val top: Int = 0, val bottom: Int = 0, val left: Int = 0, val right: Int = 0, val red: Int = 0, val green: Int = 0, val blue: Int = 0) : Transform<PlatformBitmapImage, PlatformBitmapImage> (source)
Pads an image by adding pixels to the edges.
Usage
val pad = ImagePad(top = 10, bottom = 10, left = 10, right = 10)
val padded = pad.apply(originalImage)Content copied to clipboard
Parameters
top
Pixels to add at top
bottom
Pixels to add at bottom
left
Pixels to add at left
right
Pixels to add at right
red
Red component of padding color (0-255)
green
Green component of padding color (0-255)
blue
Blue component of padding color (0-255)