insertImage

fun insertImage(bytes: ByteArray, intrinsicSize: Size, position: Offset = Offset.Zero)

Place a bitmap on the canvas. bytes is the raw encoded image (PNG / JPEG / WebP — whatever the renderer's decoder accepts); the SDK owns decoding from there. intrinsicSize is the source image's pixel dimensions, used to preserve aspect ratio when sizing the placed element. position is the world-space anchor that lands at the center of the placed image — drop / paste at the cursor naturally puts the image under the cursor.