🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18049

Displaying scaled GIF files

#18049
From: Walker Lipscomb
Date: Wed, 26 Aug 1998 00:00
13 lines
735 bytes
I am trying to display a scaled-down version of a GIF file. I can display
the file at full size using this code:

    ImageIcon imgI = new ImageIcon("myfile.gif");
    myLabel.setIcon(imgI);
    this.add(myLabel);

Is there a way I can modify this code to display a smaller version of
myfile.gif?

Thanks, 

Walker Lipscomb
Technical Details
Message-ID: <01bdd091$a9d53700$f94d440c@tosh465>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,5dad0344b31baa74,start
X-Google-Attributes: gidf74b3,public
From: "Walker Lipscomb" <walkerlip@worldnet.att.net>
Subject: Displaying scaled GIF files
Date: 1998/08/26
Message-ID: <01bdd091$a9d53700$f94d440c@tosh465>
X-Deja-AN: 384755721
Organization: AT&T WorldNet Services
Newsgroups: borland.public.jbuilder.java.language