tencent cloud

All product documents
Tencent Cloud Super App as a Service
Rendering
Last updated: 2025-02-24 17:10:37
Rendering
Last updated: 2025-02-24 17:10:37

Canvas

In mini games, there is only one on-screen canvas, but you can have multiple off-screen canvases. You can create a canvas object using wx.createCanvas .
Note
The first call to this API creates the on-screen canvas, while subsequent calls create off-screen canvases.

Drawing context and APIs

You can create a drawing context using Canvas.getContext. The specific type of drawing context returned can be found in the RenderingContext.

Frame rate locking

wx.setPreferredFramesPerSecond allows you to lock the frame rate.


Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon