drawImage
abstract fun drawImage(bytes: ByteArray, x: Float, y: Float, width: Float, height: Float, contentScale: ContentScale, sourceTop: Float = 0.0f, sourceBottom: Float = 1.0f, allowDownScale: Boolean = true, altText: String? = null)
Draws a bitmap, optionally embedding only a vertical window of the source — sourceTop / sourceBottom are normalized (0..1) offsets used by the page-break slicer to continue a tall image across pages.
Parameters
allowDownScale
when true (default), the backend subsamples the source bitmap so its pixel dimensions roughly match the destination at 200 DPI before drawing. Pass false to feed every source pixel through the platform decoder.
altText
accessibility description of the image. When non-null and the backend writes tagged structure (the JVM backend wraps the draw in a /Figure marked-content sequence carrying /Alt), screen readers can describe the picture. Backends without tagging ignore it.