Board index » cppbuilder » Draw a transparent Gif to a Canvas

Draw a transparent Gif to a Canvas

hi to all,
i'm trying to load from a file a transparent gif  (with TGIFImage Component)
and draw it in a Canvas, but when i draw it, the gif is not transparent any
more.

how can i do?

thanks

Teo

 

Re:Draw a transparent Gif to a Canvas


I've had some problems with that in the past. While I don't remember
all the specifics, I have the following in my code:

      TGIFImage *g = static_cast<TGIFImage *>
(FImg->Picture->Graphic);

      // This call is necessary to make a transparent GIF pick up a
new
      //  background
      g->StopDraw();

Quote
"Gallo_Teo" <lanzi.mat...@okpress.it> wrote in message <news:3ead1024$1@newsgroups.borland.com>...
> hi to all,
> i'm trying to load from a file a transparent gif  (with TGIFImage Component)
> and draw it in a Canvas, but when i draw it, the gif is not transparent any
> more.

Other Threads