Yep, Any file can be included as a resource and then loaded from a TResourceStream.
 
Myles.
-----Original Message-----
From: Stacey Verner [mailto:[EMAIL PROTECTED]]
Sent: Friday, 2 November 2001 3:59 p.m.
To: Multiple recipients of list delphi
Subject: [DUG]: TPicture and its stored data.

I just found out that a TPicture always stores its data as a bmp.
 
I create an Image and save it as a nice small JPG (80 K), and then load it into a TPicture on a Delphi form (lets say, a Splash screen) and suddenly the DFM is 1.3 meg, and the resulting exe is 1.7 meg.
 
Is there any way to get a TPicture to store its data in the raw imported format?
Is there any other way of doing this (resources?)?
 
I know that I could load the JPG at run time but that means another file to deliver which could easilty be deleted (especially if the user is anything like me...).
 
Stacey
 
Stacey Verner             Ph:   +64-9-4154790
Software Developer        Fax:  +64-9-4154791
                          DDI:  +64-9-4154797
CJN Technologies Ltd.     Email: [EMAIL PROTECTED]
PO Box 302-278, North Harbour, Auckland 1330, New Zealand
12 Piermark Drive, North Harbour, Auckland, New Zealand
Visit our website at http://www.cjntech.co.nz/
 
 

Reply via email to