Handling Images

Published 2014-10-28 | (Compatible with SDK 2.5,3.5,4.5,5.0,5.1 and 2011,2012,2013,2014 models)

Handling Images

Loading Images In Advance

The browser decodes images to display them normally on your screen. If the browser continues to change images that are displayed at a high speed, it may fail to display images on the screen due to unfinished decoding process. To avoid this, you can load and store images before you actually use them. By doing this, you save the time for image decoding:

var imagePreloading = new Image();
imagePreloading.src = "Resource/image/largeNFastChange.png";

Now, the browser decodes images. Images decoded once by the browser need not be decoded again later when they are used elsewhere, allowing your TV to display them faster.