render Composable To Ico Bytes
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
icon Render Properties
Properties for rendering the icon
content
The Composable content to render
Throws
Exception
if rendering fails