Saving An Image

Discussion in 'Questions (Windows Mobile)' started by scott93727, Oct 25, 2008.

  1. scott93727

    scott93727 Member Licensed User

    What the right code to use to save an image with the dialog, tried below but doesn't work.
    Thanks
    Scott


    Sub imsav_Click
    saveDialog1.Show
    ErrorLabel(err6)
    FileOpen(c1,savedialog1.file,cWrite)
    FileWrite(c1,image1.Image)
    FileClose(c1)
    Goto send6:
    err6:
    Msgbox("Not a supported file Type.")
    send6:

    End Sub
     
  2. specci48

    specci48 Well-Known Member Licensed User

    Hello Scott93727,

    you should use the ImageLibEx library to save an image to a file.
    Have a look at the help topic BitmapEx.



    specci48
     
  3. Zenerdiode

    Zenerdiode Active Member Licensed User

    Your error handling code is not quite written as intended either.
    You should remove the 'Goto send6:' labels and place a 'Return' statement before your error handling label & code.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice