1. Image name url + / Base64 the setImage ( 'hightopo', 'www.hightopo.com/logo.png') registered by way of url setImage ( 'hightopo', 'data : image / png; base64, iVBORw ... Jggg == ') registered by way of base64
2. Image name url + w + h + / Base64 // setImage ( 'hightopo', 200 is, 80, 'www.hightopo.com/logo.png') registered by way of url, specify the image width and height // setImage ( ' hightopo ', 200, 80,' data: image / png; base64, iVBORw ... Jggg == ') registered by base64 embodiment, image width and height specified
Design text and graphics ht.Default.setImage ( "title", { "width": 150, "height": 50, "the comps": [ { "of the type": 'text', "text": "Bus route the Map", // picture content "rect": [0, 0 , 150, 150], // rectangle "color": '# 255e2c' , // text color "font": 'Bold 18px Arial', "align = left": 'Center ', // alignment "shadow": true, // whether shadow "shadowColor":' # fd1a1c 'Shadow Color @ } ] });
Url only one parameter, the name and picture of the way the same url path (not used) the setImage ( 'www.hightopo.com/logo.png')
Direct registration img and canvas elements to draw html mode After you have registered before setImage ( 'hightopo', img | canvas)