-
Acme Gif Encoder Problem
I am using the ACME Gif Encoder to encode a Image object...
The code within a doPost method is as follows :
----------------------------------------------------
Frame frame = null;
Graphics g = null;
try{
frame = new Frame();
frame.addNotify();
Image image = frame.createImage(xmax,ymax);
g = image.getGraphics();
g.fillRect(30,30,xmax-30,ymax-50);
res.setContentType("image/gif");
GifEncoder encoder = new GifEncoder(image,out);
encoder.encode();
}
finally
{
if(g != null) g.dispose();
if(frame != null) frame.removeNotify();
}
-----------------------------------------------------
Now the problem is that the image that is visible on the browser is
a BMP and not a GIF file !
What could be wrong ???
Thanks,
Vikram
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks