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 

Store a pic to file and reload again

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





PostPosted: Mon Nov 21, 2005 7:25 pm    Post subject: Store a pic to file and reload again Reply with quote



When looking at a .dfm file, if you have any pictures on the form
you will see something like the following under the picture line.

Bitmap = { 5634563463463458687978987 }

Its a lot more lines than that. How can I go about in storing a picture
into a format like that, and then load it back up into my TPicture?

I am looking for a simple way of storing a picture into a record, I am using
commatext at the moment to store my records. Small pic, nothing fancy.
A sample will be helpful.


Thanks.
Steven


Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Mon Nov 21, 2005 9:37 pm    Post subject: Re: Store a pic to file and reload again Reply with quote




"Steven" <stef (AT) bondo (DOT) edu> wrote


Quote:
How can I go about in storing a picture into a format like that,
and then load it back up into my TPicture?

The data you see is just a hex string representation of the binary data,
where every pair of ASCI characters represents a single binary byte.
Besides that, the DFM itself stores binary data, not textual representation
of the data. What you see in the IDE is not what is actually in the .dfm
file. The IDE translates the binary data into text when viewed in the
editor.

With that said, why are you trying to load data into TPicture manually? Why
not use the feratures it already has implemented? What EXACTLY are you
trying to accomplish?


Gambit



Back to top
Steven
Guest





PostPosted: Tue Nov 22, 2005 3:28 am    Post subject: Re: Store a pic to file and reload again Reply with quote



I created a sample program and am uploading it to the attachments dir.
Can you take a look at it for me please.


Steven.

Quote:
With that said, why are you trying to load data into TPicture manually?
Why
not use the feratures it already has implemented? What EXACTLY are you
trying to accomplish?


Gambit





Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Tue Nov 22, 2005 6:31 am    Post subject: Re: Store a pic to file and reload again Reply with quote


"Steven" <stef (AT) bondo (DOT) edu> wrote


Quote:
I created a sample program and am uploading it to
the attachments dir. Can you take a look at it for me
please.

I re-wrote your project a little bit. See the attachments group for the
changes.


Gambit



Back to top
Steven
Guest





PostPosted: Tue Nov 22, 2005 1:51 pm    Post subject: Re: Store a pic to file and reload again Reply with quote

Thank you very much, I just tried it and it works
perfectly.

Thanks again
Steven


Quote:
I created a sample program and am uploading it to
the attachments dir. Can you take a look at it for me
please.

I re-wrote your project a little bit. See the attachments group for the
changes.


Gambit





Back to top
Pedram
Guest





PostPosted: Wed Nov 23, 2005 10:19 am    Post subject: Re: Store a pic to file and reload again Reply with quote

I also want to see, what Subject name should I search?
thx

"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote

Quote:

"Steven" <stef (AT) bondo (DOT) edu> wrote in message
news:438290db (AT) newsgroups (DOT) borland.com...

I created a sample program and am uploading it to
the attachments dir. Can you take a look at it for me
please.

I re-wrote your project a little bit. See the attachments group for the
changes.


Gambit





Back to top
Steven
Guest





PostPosted: Wed Nov 23, 2005 3:12 pm    Post subject: Re: Store a pic to file and reload again Reply with quote

If you didn't find it, its called:
Re: Help to add picture into my record

in the attachments group.

"Pedram" <irbus (AT) remove-me-bonbon (DOT) net> wrote

Quote:
I also want to see, what Subject name should I search?
thx



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics) 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.