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;
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....
Взломай свой первый сервер и прокачай скилл — Начни игру на HackerLab