int64 CreateSpriteFromFile(string, string, string, string)
Creates a texture map from an image on the filesystem.
Security
Trust Level Required: Full Trust
Parameters
Name | Description |
callbackName |
string The name of a callback on your page that you would like KioWare to call when complete. |
spriteId |
string Your unique name for this texture sprite. |
filePath |
string The full path of the image to create a texture map from. |
devName |
(Optional) string Optional device name from the Config Tool. Default value: null. |
Return
The queue id number, or 0.
Remarks
The spriteId you provide is used to target the sprite when manipulating it.
Examples
if(!KioTouchDevice.CreateSpriteFromFile(null, 'LeftMenu', '$$KIO_USERDATA$$TextureImages\\LeftMenu.png'))
alert('Failed');
Requirements
KioWare for Windows version 8.18 or greater.