createImageShape

fun createImageShape(imageData: ByteArray?, imageSrc: String?, width: Int, height: Int, canvasCenter: Offset, userId: String): WhiteboardShape

Creates a WhiteboardShape for an uploaded image.

Parameters

imageData

Image data as ByteArray

imageSrc

Image URL or file path

width

Image width

height

Image height

canvasCenter

Center point to place the image