JPEG and DelphiX

Started by
1 comment, last by FooFighter 21 years, 10 months ago
Hi! What I would like to know: Can DelphiX display JPEG image files? It loads in the imagelist but it seems that it can''t display it on the DirectDraw Surface. BMP''s are too large and slows the project saving/loading in Delphi. A Background image that I did in Paint Shop Pro got 900KB!!! I had no choice becouse the background is cool and my game needs it... So, if anybody knows, I would be thankfully. Thanks in advance. Delphi just rules!!!
Delphi just rules!!!
Advertisement
Have you ensured that jpeg is in your uses statement? While you can ''load'' jpegs using the IDE in the image selection dialog, they will only be correctly interpretted at runtime if you include the jpeg unit, which extends the TGraphic to included jpeg support.
Yes I forgot this detail. Thank you for the answer!

Delphi just rules!!!
Delphi just rules!!!

This topic is closed to new replies.

Advertisement