Results 1 to 2 of 2

Thread: File saved using SavePicture() doesn't open in MsPaint ?

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member Dasiths's Avatar
    Join Date
    Apr 2001
    Location
    Colombo, Sri Lanka
    Posts
    331

    Question 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:
    1. If is_image(fMainForm.RichText2.SelRTF) = True Then
    2.         SendMessage fMainForm.RichText2.hwnd, WM_COPY, 0, 0
    3.         fMainForm.Picture6.Picture = Clipboard.GetData()
    4.         fMainForm.Picture6.Refresh
    5.         SavePicture fMainForm.Picture6.Picture, App.Path & "\Temp\object_" & Str(lngCurText) & ".bmp"
    6.         strHTML$ = strHTML$ & "<img src=object_" & Str(lngCurText) & ".bmp>"
    7. 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 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width