make

fun make(bytes: ByteArray, rendererType: RendererType = Rive.defaultRendererType): RiveRenderImage

Deprecated

This method name is misleading; use fromEncoded instead

Replace with

fromEncoded(bytes, rendererType)

Creates a RiveRenderImage by decoding the bytes.

The caller is in charge of the ownership of this NativeObject. It must be freed by calling release.

Return

The constructed RiveRenderImage.

Parameters

bytes

Encoded bytes for the image.

rendererType

The renderer for this image. This must match the renderer for the RiveAnimationView using this.

Throws

if the bytes cannot be decoded.

if the decoded bitmap is not premultiplied.