Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

add width, height support to put_image_data #304

Open
@orena1

Description

Hi,
As far as I can see, there is no way to scale an image when using put_image_data.
e.g.:

from ipycanvas import Canvas
import numpy as np
canvas = Canvas(width=300, height=300)
canvas.put_image_data(np.random.uniform(size=(200,200,3)))
canvas

image

No matter the width and height of the canvas... Which is different from draw_image where there are two other variables (width, height) which scale the image, is it possible to add this feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /