Skip to content

[Feature] Different width/height for canvas and canvas style #3198

Open
@shunia

Description

@shunia

Motivation

The canvas logical size, which is different than it's dom size(computed css style size).

I want to have them seperated so that I could set the logical size to the original size of the rendering texture, so that I could get the image data in the original resolution, but still be able to change the canvas dom size to fit the design.

Detailed Description

For now when calling setSize on a view, the logical size and the dom size are changed altogether, for example if I want to maintain the original resolution to 512512, I would want to call setSize(512, 512), but then the canvas dom size changed to 512512 too, which is not expected.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions