N
novel
Hi,
i wrote a program to scale down images. But to begin with i wanted to
test the gifs. I read it from my harddisk and save it on an other
name. But the images are cut off. The end is white. I tried 5 gifs and
always they are cut off at the end. But always on an other position.
Examle:
Image1 (read) Image2 (write)
XXAXXAXAX XXAXXAXAX
XAXAXAXAX XAXAXAXAX
XAXAXAAXX XAXAXAAXX
XAXAXAAXX XAXAXAAXX
AXAXXAXAX AXAXXAXAX
AXXAXAXXX
AXXARRFEA
Code:
Image img = java.awt.Toolkit.getDefaultToolkit().createImage("test.gif");
OutputStream output = new BufferedOutputStream(new
FileOutputStream("test2.gif"));
GifEncoder encoder = new GifEncoder(img,output);
encoder.encode();
Thanks
novel
i wrote a program to scale down images. But to begin with i wanted to
test the gifs. I read it from my harddisk and save it on an other
name. But the images are cut off. The end is white. I tried 5 gifs and
always they are cut off at the end. But always on an other position.
Examle:
Image1 (read) Image2 (write)
XXAXXAXAX XXAXXAXAX
XAXAXAXAX XAXAXAXAX
XAXAXAAXX XAXAXAAXX
XAXAXAAXX XAXAXAAXX
AXAXXAXAX AXAXXAXAX
AXXAXAXXX
AXXARRFEA
Code:
Image img = java.awt.Toolkit.getDefaultToolkit().createImage("test.gif");
OutputStream output = new BufferedOutputStream(new
FileOutputStream("test2.gif"));
GifEncoder encoder = new GifEncoder(img,output);
encoder.encode();
Thanks
novel