Skip to content

Disable aspect ratio #54

@stephanedemotte

Description

@stephanedemotte

Hello.

We need to put video into the canvas to take a screenshot via canvas.toDataUrl('png')

For anyone we simply scene.background = new THREE.VideoTexture(source.domElement)

But when we shoot the canvas, the width and height is is the same than what we see.
You use a bigger canvas than the screen, and re-center it with margin-left or margin-top.

Can you add a param to disable the keep aspect ratio ?

Thanks again for this great work !

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions