|
|
|
Re: Icons with multiple images [message #441672 is a reply to message #441662] |
Thu, 19 August 2004 10:53  |
Eclipse User |
|
|
|
It it were up to me I would...however life is not that easy. I have a file
called tree.ico It contains the same excact pictures expect for the size
difference...if you open in a program such as liquidicon it will ask you
for which one. Apparently this more usefull for when u have alot of icons
or something. I just want to get the ugly hozintonal lines outta my
toolbar and I will be happy man
later,
whatsgoingon
geoff wrote:
> Why don't you put the size as part of the name so you don't have to load
> the image to tell its the wrong one? e.i cancel_32.jpg, cancel_16.jpg
> whatsgoingon wrote:
> > that was easy
> > ImageLoader l = new ImageLoader();
> > final ImageData d[] = l.load(".//images//" + str.trim());
> > ImageDescriptor imagedis = new ImageDescriptor()
> > {
> > public ImageData getImageData()
> > {
> > int len = d.length;
> > return(d[len-1]);
> > }
> > };
> > this.setImageDescriptor( imagedis );
|
|
|
Powered by
FUDForum. Page generated in 0.10926 seconds