http://git.chat98.i2p/chat98/chat98/src/branch/main/src/main/kotlin/i2p/chat98/service/image/ImageService.kt
img . colorModel . hasAlpha ( ) ) { return img } val target = createImage ( img . width , img . height ) val g : Graphics2D = target . createGraphics ( ) // g.setColor(new Color(color, false)); g . fillRect ( 0 , 0 , img . width , img . height ) g . drawImage ( img , 0 , 0 , null ) g . dispose ( ) return target } private fun createImage ( width : Int , height : Int ) : BufferedImage { return BufferedImage ( width , height , BufferedImage ....