Running JDeli in Kotlin
Table of contents
Introduction
The following tutorial shows you how to use JDeli in Kotlin.
Prerequisites
Code Example
This code snippet uses JPG to PNG conversion as an example. This example uses Gradle as the build tool.
package org.example
import com.idrsolutions.image.JDeli
import java.awt.image.BufferedImage
import java.io.File
fun main() {
val bufferedImage: BufferedImage = JDeli.read(File("jpgFile.jpg"))
JDeli.write(bufferedImage, "png", File("pngFile.png"))
}