Hi,
I have Borland C++ Builder 6 and develop for Windows...
I would like to load a bitmap runtime into TImage. The user selects the file and then it should be shown via a TImage object. Using jpg images everything works just fine. Using a bmp a black rectangle appears instead of the image. (On the file system, with any image viewing tool the same image appears without problems.)
The code is as follows:
TPicture* picture = new TPicture;
// I checked the following filename (debug...), it is correct
picture->LoadFromFile( OpenPictureDialog->FileName );
// Image is the TImage that is supposed to display the image
Image->Picture = picture;
Do you have any ideas?
Thanks,
Eszter