Jpeg2kConverter

class Jpeg2kConverter(tmpDir: File)

Utility class to parse JPEG2000 classes on Android.

This utilizes the fact that PDF rendering is a part of standard Android API and JPEG2000 is a standard part of PDF. JPEG2000 file is wrapped in PDF and rendered using PDF renderer.

Parameters

tmpDir

a folder for temporary files (PDF can be rendered only from a file).

Constructors

Link copied to clipboard
constructor(tmpDir: File)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class PDFData(val bytes: ByteArray, val width: Int, val height: Int)

Functions

Link copied to clipboard

Parses JPEG2000 file and returns a Bitmap.