The function to draw an image is draw-image .
draw-image
This must be called in the same process as the pane. Use capi:apply-in-pane-process or capi:execute-with-interface if necessary.
capi:apply-in-pane-process
capi:execute-with-interface