I have some JPEG images that I want to show thumbnails of in a menu. The only way I have been able to get them to show is to do something similar to the following:
Code:
+ currFile = new_java_io_File(filename)
+ if GetMediaFileForFilePath(currfile) == null
+ true
+ AddMediaFile(currfile, "")
+ Refresh()
+ GetThumbnail(GetMediaFileForFilePath(currfile))
+ false
+ GetThumbnail(GetMediaFileForFilePath(currfile))
-pic- Untitled
My question is, do I really need to do the "AddMediaFile" or is there another way of pulling in the image? Is there really a problem doing the AddMediaFile, or am I worrying for nothing?
Thanks for any help!