renderComposableToPngFile

fun renderComposableToPngFile(iconRenderProperties: IconRenderProperties, content: () -> Unit): String

Renders a Composable to a PNG file and returns the path to the file.

Return

Path to the generated PNG file

Parameters

iconRenderProperties

Properties for rendering the icon

content

The Composable content to render

Throws

Exception

if rendering fails completely