Companion

object Companion

Functions

Link copied to clipboard
fun open(encoded: ByteArray, file: String = "<memory>"): BitmapView

Opens a bitmap held on the heap — what ReadableBitmap.encode produces.

fun open(segment: MemorySegment, offset: Long, length: Int, file: String): BitmapView

Opens the bitmap occupying [offset, offset + length) of segment.