Jan 25th, 2004, 07:46 AM
#1
Thread Starter
Hyperactive Member
File saved using SavePicture() doesn't open in MsPaint ?
Hi I used This method to save a selected image
in a rtf document as a BMP .......
VB Code:
If is_image(fMainForm.RichText2.SelRTF) = True Then
SendMessage fMainForm.RichText2.hwnd, WM_COPY, 0, 0
fMainForm.Picture6.Picture = Clipboard.GetData()
fMainForm.Picture6.Refresh
SavePicture fMainForm.Picture6.Picture, App.Path & "\Temp\object_" & Str(lngCurText) & ".bmp"
strHTML$ = strHTML$ & "<img src=object_" & Str(lngCurText) & ".bmp>"
End If
The problem is it does not seem to be valid bmp file ......
But Windows Explorer shows the preview ........
---------------
This is my other post with the same problem ....
http://www.vbforums.com/showthread.p...hreadid=276287
--------------------
here is a screen shot .......
Attached Images
Last edited by Dasiths; Jan 25th, 2004 at 07:51 AM .
It is the mark of an instructed mind to rest satisfied with the degree of precision which the nature of the subject admits, and not to seek exactness when only an approximation of the truth is possible.
-Aristotle As quoted in Rapid Development, chapter 8, page 167.
Jan 25th, 2004, 11:34 AM
#2
Frenzied Member
Re: File saved using SavePicture() doesn't open in MsPaint ?
Why do you need to have a second thread when your first one still has people posting in it?
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