ComposeResourceImageTransformer

class ComposeResourceImageTransformer : ImageTransformer(source)

Resolves local markdown image references (e.g. assets/screenshots/foo.png) to bundled Compose resources via Res.getUri and loads them asynchronously using Coil 3's rememberAsyncImagePainter.

External URLs (http:// / https://) return null so the default renderer behaviour applies (or they are simply skipped). Missing resources are silently skipped (returns null) to avoid crashing composition when screenshots have not yet been generated or synced.

FR-038: Screenshots synced by syncDocsToComposeResources land under composeResources/files/docs/assets/screenshots/, matching the relative paths used in the authored markdown.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun intrinsicSize(painter: Painter): Size
Link copied to clipboard
open fun placeholderConfig(link: String, density: Density, containerSize: Size, imageWidth: ImageWidth, imageSize: Size, imageSizeChanged: (link: String, Size) -> Unit?): PlaceholderConfig
Link copied to clipboard
open override fun transform(link: String): ImageData?