JPEG

object JPEG : ImageFormat

Functions

check
Link copied to clipboard
common
fun check(s: SyncStream, props: ImageDecodingProps): Boolean
decode
Link copied to clipboard
common
suspend fun decode(file: VfsFile): Bitmap
fun decode(s: SyncStream, props: ImageDecodingProps): Bitmap
fun decode(s: ByteArray, props: ImageDecodingProps): Bitmap
decodeHeader
Link copied to clipboard
common
open override fun decodeHeader(s: SyncStream, props: ImageDecodingProps): ImageInfo?
encode
Link copied to clipboard
common
fun encode(bitmap: Bitmap, props: ImageEncodingProps): ByteArray
fun encode(image: ImageData, props: ImageEncodingProps): ByteArray
fun encode(frames: List<ImageFrame>, props: ImageEncodingProps): ByteArray
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
read
Link copied to clipboard
common
suspend fun read(file: VfsFile): Bitmap
suspend fun read(file: VfsFile, props: ImageDecodingProps): ImageData
fun read(s: SyncStream, props: ImageDecodingProps): Bitmap
fun read(s: SyncStream, filename: String): Bitmap
fun read(s: ByteArray, props: ImageDecodingProps): Bitmap
fun read(s: ByteArray, filename: String): Bitmap
readImage
Link copied to clipboard
common
open override fun readImage(s: SyncStream, props: ImageDecodingProps): ImageData
toString
Link copied to clipboard
common
open override fun toString(): String
writeImage
Link copied to clipboard
common
open override fun writeImage(image: ImageData, s: SyncStream, props: ImageEncodingProps)

Properties

extensions
Link copied to clipboard
common
val extensions: Set<String>

Sources

(source)
Link copied to clipboard