jupyter-widgets-contrib / ipycanvas

Interactive Canvas in Jupyter
https://ipycanvas.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
688 stars 64 forks source link

Issue when drawing a canvas on another #272

Closed martinRenou closed 2 years ago

martinRenou commented 2 years ago

The following seems to fail with the latest ipycanvas version:

image_data = canvas.get_image_data(x=0, y=0, width=64, height=64)
canvas2 = Canvas(width=64, height=64)   
canvas2.put_image_data( image_data, 0, 0 )

See https://github.com/martinRenou/ipycanvas/discussions/271