Nelson, hi!
I have a similar problem like you.
You writes, you have found some controls for older versions of C++. I need TGIFImage component for C++Builder 5.
Can you help me?
Thanks!
have you tried the TPNGImage from:
http://pngdelphi.sourceforge.net/ ?
The docs don't say explicitly that it works with BCB6, but I was able to
compile it.
Just extract the files, do 'Install component', select the three pascal
files and install.
hope it works,
Nick
> I cannot find any TPNGImage or TGIFImage control for C++ Builder 6
> anywhere on the web. What I can find are those for Delphi and older
> versions of C++ Builder.
I can't believe that Borland would rely on 3rd party developers to provide
support for these most common graphics formats. No native TIFF support
either. Sometimes, I have to wonder where their heads are. Hard at work
on the latest buzz-word, no doubt!
There is a good TGifImage vcl component at www.torry.net search for:
tgifimage
regards
"Nelson" <doom...@hotmail.com> wrote in message
news:3e16...@newsgroups.borland.com...
the component does not appear on the palette. After you install it the
component is available for all projects. Usally you would use it in a TImage
you dragged on your form. When you click its Picture property in the object
inspector to select a picture you will notice that it now supports png
files! BCB automatically includes the auto-generated header file and the
library.
In case you want to use png files without using TImage, include
"pngimage.hpp" and add the library "pngimage.lib" to your project. Also add
the path to these files in your project options.
You then have for example:
TPNGObject* pngImage = new TPNGObject;
pngImage->LoadFromFile("d:\\graphics\\test.png");
...
delete pngImage;
There is really nothing stupid about your question! As far as I figured it
out it works like so:
You install the package as a design time package, but it actually contains
no component that is registered to appear on the palette. However, since its
a design time package BCB will always load it on startup. Now the pascal
unit contains an 'initialization' section at the end of the file which is
always executed when the package loads. There you find these lines:
initialization
...
TPicture.RegisterFileFormat('PNG', 'Portable Network Graphics',
TPNGObject);
...
Thus BCB registers the file format on startup such that it's available in
the TPicture dialog that you use to select the picture in a TImage
component....
good luck,
Nick
> Can anyone tell me where can I get one for C++ Builder 6?
http://pngdelphi.sourceforge.net
This works fine for me in BCB6. It is made for Delphi but I made a
C++Builder package without issue. Unless you want C++ source this should
work just fine.
HTH,
- Clayton