|
-
Dec 7th, 2001, 12:42 PM
#1
Saving bmp...
How do i save bitmap files????
-
Dec 7th, 2001, 12:46 PM
#2
Fanatic Member
this works for me
Call SavePicture(Picture1.Picture, "c:\test.bmp")
-
Dec 7th, 2001, 12:51 PM
#3
I mean i want to save bitmap and text in one file.
-
Dec 7th, 2001, 12:57 PM
#4
Where is the text? What do you want to make a bitmap file out of? Some more specific details please.
-
Dec 7th, 2001, 12:59 PM
#5
The text and the picture is in the rich text box.
-
Dec 7th, 2001, 01:05 PM
#6
PowerPoster
Then you need to save the whole file in RTF format. You can use simple file access to save each chunk of that RTF text as an RTF file like this:
VB Code:
Open mywholefile.txt For Output As #1
Print #1, RichTextBox1.TextRTF
Close #1
-
Dec 7th, 2001, 01:13 PM
#7
Ah...the text and picture are in a RichTextBox...that makes it clear, although Abdul beat to a solution. However, Abdul, I have a question. If haravinth wishes to save the contents of his RichTextBox to a bitmap file, wouldn't he want to do something like
VB Code:
'create as bitmap file. Windows should recognize the extension
Open mywholefile.bmp For Output As #1
Print #1, RichTextBox1.TextRTF
Close #1
-
Dec 7th, 2001, 01:27 PM
#8
PowerPoster
Originally posted by Hack
However, Abdul, I have a question. If haravinth wishes to save the contents of his RichTextBox to a bitmap file, wouldn't he want to do something like...
I thought he wanted to save the contents of the Rich Text Box (including the text and the bitmap) as he said here:
haravinth The text and the picture is in the rich text box.
If you save the file as a bitmap, it is gonna save the text and the bitmap(s) which will corrupt the whole bitmap file. I thought he wanted to just save the contents of Rich Text Box (including that bitmap) so he will be able to retrieve that back again
-
Dec 7th, 2001, 01:33 PM
#9
Yaa, Abdul is right. Now my program is working well.
-
Dec 7th, 2001, 01:37 PM
#10
Ok. My misunderstanding. I'll go take my foot out of my mouth now (today seems to be the day for that for me!)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|