wood burning stoves 2.0*
The moose likes Applets and the fly likes LOADING .TIFF IMAGES INTO AN APPLET Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "LOADING .TIFF IMAGES INTO AN APPLET" Watch "LOADING .TIFF IMAGES INTO AN APPLET" New topic
Author

LOADING .TIFF IMAGES INTO AN APPLET

Vishnu Murthy
Ranch Hand

Joined: Jan 04, 2001
Posts: 56
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: LOADING .TIFF IMAGES INTO AN APPLET
 
Similar Threads
Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException
Create New Image Using 1.1
Error Diplaying TIFF in Applet through JSP
Can't run my applet on a html page
Applet, How to get the image displayed PLEASE HELP