 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Michael Kutscher Guest
|
Posted: Wed Apr 20, 2005 8:39 pm Post subject: incompatible gif-image |
|
|
Hi,
I am using TGIFImage by Anders Melander and it works very well.
But I need to show these gif-images within a java-applet and this doesnt
work. The java-applet is not able to open the files, allthough all other
programms can. I get an error messge, telling, there is no
global-color-palette.
Is there a way to force the creation of a global color palette when
storing a gif-Image using this component?
Maybe I did miss something. This is my code:
// Form3->Image1->Picture->Bitmap has been loaded with a bmp-file oder
// filled from the clipboard. It doesnt seem to matter,
// where it comes from.
GIFImageDefaultColorReduction=rmQuantizeWindows;
TGIFImage *tg= new TGIFImage();
try
{
tg->Assign(Form3->Image1->Picture->Bitmap);
tg->SaveToFile(SaveDialog1->FileName);
}
__finally
{
delete tg;
}
Thanks in advance for any clue
Michael
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|