MeasuredImage

data class MeasuredImage(val bytes: ByteArray, val contentScale: ContentScale, val size: Size, val allowDownScale: Boolean = true, val altText: String? = null) : MeasuredNode

Measurement result for an image node.

Carries the encoded bytes alongside the resolved destination size and contentScale so the renderer can hand them straight to the platform canvas without having to walk the original com.conamobile.pdfkmp.node.ImageNode tree again.

Constructors

Link copied to clipboard
constructor(bytes: ByteArray, contentScale: ContentScale, size: Size, allowDownScale: Boolean = true, altText: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
val altText: String? = null

Accessibility description forwarded from com.conamobile.pdfkmp.node.ImageNode.altText.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val size: Size

Final size of the node within its parent.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int