Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Saving An Image

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-25-2008, 09:43 PM
Junior Member
 
Join Date: May 2007
Posts: 36
Default Saving An Image

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
Reply With Quote
  #2 (permalink)  
Old 10-25-2008, 10:26 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 1,057
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Hello Scott93727,

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



specci48
Reply With Quote
  #3 (permalink)  
Old 10-26-2008, 11:44 AM
Basic4ppc Veteran
 
Join Date: May 2008
Location: Newcastle Upon Tyne - England
Posts: 271
Awards Showcase
Beta Tester 
Total Awards: 1
Default

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.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving an image to a file Erel Additional Libraries 12 03-07-2009 02:46 PM
Saving a picture from a file to the database origami Questions (Windows Mobile) 3 05-09-2008 09:20 PM
Saving Image(portion of it) bdiscount Questions (Windows Mobile) 1 09-05-2007 06:19 AM
Saving the screen to a file derez Questions (Windows Mobile) 3 07-04-2007 11:08 AM
Space saving with formatted text? mwaite Questions (Windows Mobile) 5 05-26-2007 04:36 PM


All times are GMT. The time now is 02:57 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0