renderComposableToIcoBytes

fun renderComposableToIcoBytes(iconRenderProperties: IconRenderProperties, content: () -> Unit): ByteArray

Renders a Composable to ICO format bytes. Since ICO format is not directly supported by the encoding library, this method first renders to PNG and then creates a simple ICO wrapper.

Return

Byte array containing the ICO data

Parameters

iconRenderProperties

Properties for rendering the icon

content

The Composable content to render

Throws

Exception

if rendering fails