"Robert Martin" <[EMAIL PROTECTED]> wrote on 27/06/2001 13:30:45:
>
> Hi just a quick question.  I believe that TImage doesnt support Jpeg 
> files, which our users may want to use.  What is the best way of 
> doing a preview of BMPs and Jpegs.  Do we need two components, 1 for
> each image style or is there a component that displays both?

I believe there's a TJPEG component that ships with Delphi.  Have a 
look for jpeg.dcu in your delphi dir - in BCB it's in ...\lib\obj, but 
I can't recall how Delphi lays out the directories.  This module 
implements a TJPEGImage class and registers itself with TPicture (I 
think) to enable it to handle reading & writing JPEG images.  At worst 
you'll have to instatiate a TJPEGImage to load the file, then copy the 
decoded bitmap to somewhere, or paint it directly onto your display 
canvas. 

--
Corey Murtagh
The Electric Monk
"Quidquid latine dictum sit, altum viditur!"

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to