Главная страница | назад





Article #20155: Using JPEG's in a TImage

QUESTION: I am using C++ Builder 4, trying to load a jpeg image into a TImage at runtime. I get the error "Unknown Picture File Extension (.jpg)". I know that you can load a jpeg into a TImage because I can do it at design time. What am I missing?

ANSWER: The most probable culprit is that you did not include the header "JPEG.hpp". Include this file into your module and do a full rebuild.

Last Modified: 18-JAN-00