← Back to team overview

leaningtech-dev team mailing list archive

Re: [Question #506912]: Error while creating offscreen canvas element

 

Question #506912 on Cheerp changed:
https://answers.launchpad.net/cheerp/+question/506912

    Status: Open => Answered

Alessandro Pignotti proposed the following answer:
HTML elements needs to be created from the document object. The
following syntax should work.

auto canvas =
(client::HTMLCanvasElement*)document.createElement("canvas");

-- 
You received this question notification because your team Leaningtech
Team is an answer contact for Cheerp.