So I'm working on application which is using TPicture. I load all picture to TBitmap in TPicture. For JPEG's i use this code:
TJPEGImage * test;
test = new TJPEGImage;
test->LoadFromFile("test.jpg");
TPicture * test2;
test2->Bitmap->Assign(test);
This code works fine. But now I want to load also PNG, GIF ans TIFF images. How can I do that?
TJPEGImage * test;
test = new TJPEGImage;
test->LoadFromFile("test.jpg");
TPicture * test2;
test2->Bitmap->Assign(test);
This code works fine. But now I want to load also PNG, GIF ans TIFF images. How can I do that?