Mobile Development 10.11 | webMethods Mobile SuiteWeb Help | Using webMethods Mobile Designer | Creating Mobile Application Projects | Coding a Mobile Application | Image Caching
 
Image Caching
 
Managing the Image Cache
Disabling Image Caching for the Whole Application
Copying an Image for Drawing
Mobile Designer supports caching of javax.microedition.lcdui.Image data. This happens transparently, without your intervention. Calls to Image.loadImage() first check if the data exists in the internal image cache. If it does, the previously created image instance is returned. This behaviour is enabled by default. You can disable it, if required.
Note:
Due to the way caching is performed, altering the image through the graphics object associated with it alters all references to the loaded file. If you want to alter a single instance of the image, you should create a copy of the image before. For instructions, see Copying an Image for Drawing.