padPlatformImage
actual fun padPlatformImage(image: PlatformBitmapImage, top: Int, bottom: Int, left: Int, right: Int, red: Int, green: Int, blue: Int): PlatformBitmapImage(source)
Android implementation of image padding using Canvas.
expect fun padPlatformImage(image: PlatformBitmapImage, top: Int, bottom: Int, left: Int, right: Int, red: Int, green: Int, blue: Int): PlatformBitmapImage(source)
Pads a platform image with the specified margins.
Return
A new padded image
Parameters
image
The source image
top
Padding at top edge
bottom
Padding at bottom edge
left
Padding at left edge
right
Padding at right edge
red
Red component of padding color (0-255)
green
Green component of padding color (0-255)
blue
Blue component of padding color (0-255)
actual fun padPlatformImage(image: PlatformBitmapImage, top: Int, bottom: Int, left: Int, right: Int, red: Int, green: Int, blue: Int): PlatformBitmapImage(source)
actual fun padPlatformImage(image: PlatformBitmapImage, top: Int, bottom: Int, left: Int, right: Int, red: Int, green: Int, blue: Int): PlatformBitmapImage(source)
actual fun padPlatformImage(image: PlatformBitmapImage, top: Int, bottom: Int, left: Int, right: Int, red: Int, green: Int, blue: Int): PlatformBitmapImage(source)
JVM implementation of image padding using Java2D.
actual fun padPlatformImage(image: PlatformBitmapImage, top: Int, bottom: Int, left: Int, right: Int, red: Int, green: Int, blue: Int): PlatformBitmapImage(source)