| newbie question [message #480397] |
Sun, 16 August 2009 14:45  |
|
Originally posted by: vicenterg.arrakis.es
Is it possible to load an image from a file without create a new image?
I mean:
I know we can do the following:
Image image=new Image(display, nameOfFile)....
But, can i load an image whithout use "new Image". I have a table and i
will to add an icon to a tableitem . If i do "new image", i must dispose
this image later. I wish to know whether i can load an image directly
from a file in the HD, something like:
Image image=loadImageFromDisk(nameOfFile), and later do:
tableItem.setImage(image).
This way i don't need to dispose it because i haven't created with "new
Image".
Is this possible? Thanks!!!
|
|
|
|
Powered by
FUDForum. Page generated in 0.02223 seconds