Board index » cppbuilder » Problem loading GIF into TImage

Problem loading GIF into TImage

Hi, guys

I use BCB6 and I try to load a GIF image into a TImage component, but it
doesn't work - I get the message "Unknown picture file extension".
Could somebody help me?

Thank you.

--
Sincerely,
Georgi Cholakov

 

Re:Problem loading GIF into TImage


GIF is not a supported format by default.  You'll need to use third-party
code (or write your own from scratch) in order to work with GIF.

In order for TImage to work with GIF, you'll have to manually call
TPicture::RegisterFileFormat() first to register a TGraphic-decendant class
that is GIF-aware.

Gambit

Quote
"Georgi Cholakov" <georgi.chola...@mail.bg> wrote in message

news:3d907014@newsgroups.borland.com...
Quote
> I use BCB6 and I try to load a GIF image into a
> TImage component, but it doesn't work - I get the
> message "Unknown picture file extension". Could
> somebody help me?

Other Threads