Companion

object Companion

Functions

Link copied to clipboard
fun create(drawable: Drawable?, scaleType: ImageView.ScaleType = ScaleType.FIT_CENTER, useIntrinsicSize: Boolean = true, widthPx: Int? = null, heightPx: Int? = null, style: Style? = null): PrimitiveImage

Java-compatible factory method that accepts pixel values for dimensions. Use this method when calling from Java code with pixel values.

Link copied to clipboard
fun createDp(drawable: Drawable?, scaleType: ImageView.ScaleType = ScaleType.FIT_CENTER, useIntrinsicSize: Boolean = true, widthDp: Float? = null, heightDp: Float? = null, style: Style? = null): PrimitiveImage

Java-compatible factory method that accepts dp values for dimensions. Use this method when calling from Java code with dp values (e.g., from .widthDip() or .heightDip() calls).