BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Saving the contents of a TPicture object?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Avadhani
Guest





PostPosted: Thu May 10, 2007 8:11 am    Post subject: Saving the contents of a TPicture object? Reply with quote



My program lets the user open a BMP file.
Afterwards the user may delete the BMP
file from the disk.
I have to save the the contents of the
TPicture object including the contents
of Bitmap member (TBitmap) to a
TFileStream object. How can I do it?
Back to top
Hans Galema
Guest





PostPosted: Thu May 10, 2007 2:27 pm    Post subject: Re: Saving the contents of a TPicture object? Reply with quote



Avadhani wrote:
Quote:
My program lets the user open a BMP file.

Are you displaying the file for the user? If so, how?

Quote:
Afterwards the user may delete the BMP
file from the disk.

Ok.

Quote:
I have to save the the contents of the
TPicture object including the contents
of Bitmap member (TBitmap) to a
TFileStream object. How can I do it?

Asuming that you loaded the .bmp file in a TPicture,
how would what you write to the TFileStream (which lands
on disk) differ from the original file? Did you change
something?

Please clarify what you want the result to be.

Hans.
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Thu May 10, 2007 11:15 pm    Post subject: Re: Saving the contents of a TPicture object? Reply with quote



"Avadhani" <ranganath_avadhani (AT) yahoo (DOT) com> wrote in message
news:4642af99 (AT) newsgroups (DOT) borland.com...

Quote:
I have to save the the contents of the
TPicture object including the contents
of Bitmap member (TBitmap) to a
TFileStream object. How can I do it?

Picture->Bitmap->SaveToFile("c:\\path\\myimage.bmp");


Gambit
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.