Automattic / Automattic/node-canvas

[Question] Is there "fromBuffer" method?

Open
#1,027 1 comment 0 reactions 0 assignees View on GitHub
Feature
Dominant language
JavaScript
Stars
10.7k
Forks
1.2k
Avg merge
4d 8h
Merged PRs (30d)
1

Description

There is very useful and fast `toBuffer` method on canvas instance. But, is there somethign like `fromBuffer` method? I already have a buffer in rgb24 or rgb32 pixel format and I want to put it as image data on canvas. I noticed that putting it as `putImageData` is very slow, is there something equaly fast as `toBuffer`? Can I literally modify internal canvas's buffer from JavaScript environment?

Thanks.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.