BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

incompatible gif-image

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics)
View previous topic :: View next topic  
Author Message
Michael Kutscher
Guest





PostPosted: Wed Apr 20, 2005 8:39 pm    Post subject: incompatible gif-image Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.