Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

LOADING .TIFF IMAGES INTO AN APPLET

 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to load .tiff image into an applet
the code given in java2 complete reference is as follows
/*
* <applet code="SimpleImageLoad" width=248 heigh=146>
* <param name="img" value="scenary.jpg">
*</applet>
*
*/
import java.applet.*;
import java.awt.*;
public class SimpleImageLoad extends Applet
{
Image img;
public void init()
{
img = getImage(getDocumentBase(),getParameter("img"));
}
public void paint(Graphics g)
{
g.drawImage(img, 0,0,478,298,this);
}
}

but this code is working for .jpg and .gif images but not functioning for .tiff images, can any help as how to load .tiff file into applet.
thanks
vishnu
[ November 15, 2002: Message edited by: vishnu murthy ]
 
Every plan is a little cooler if you have a blimp. And a tiny ad.
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic