Package-level declarations
Functions
Link copied to clipboard
fun BufferedImage.removeBackground(hardTolerance: Int, softTolerance: Int = hardTolerance): BufferedImage
Делает прозрачным однотонный фон, связанный с краями изображения.
Link copied to clipboard
fun BufferedImage.scale(maxWidth: Int = 0, maxHeight: Int = 0, interpolation: Interpolation = Interpolation.BILINEAR): BufferedImage
Link copied to clipboard
fun BufferedImage.toPng(maxWidth: Int = 0, maxHeight: Int = 0, interpolation: Interpolation = Interpolation.BILINEAR, hardTolerance: Int = 0, softTolerance: Int = hardTolerance): ByteArray
Уменьшает изображение, при необходимости удаляет однотонный фон и кодирует результат в PNG.