tencent cloud

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

wx.createImage

This API is called using Image wx.createImage().
Feature description: Creates an image object.
Return value:Image. An image object.

Image

Image object

Property

string src: The URL of the image.
number width: The actual width of the image.
number height: The actual height of the image.
function onload: The callback function triggered after the image is loaded.
function onerror: The callback function triggered when an error occurs while loading an image.





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