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

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Additional Libraries
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.

Saving an image to a file

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-29-2007, 07:13 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,689
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default Saving an image to a file

Attached is a small library that allows saving images to bitmap (BMP) files.
It works from the desktop or the device.
This library requires .Net Framework 2.
An example is included in the zip file.
Attached Files
File Type: zip ImageLibex.zip (2.5 KB, 368 views)
Reply With Quote
  #2 (permalink)  
Old 06-08-2007, 09:07 AM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default Error

Hi Erel
the attached library reports an error, can you please check and post it again ?
Thanks
David
Reply With Quote
  #3 (permalink)  
Old 06-08-2007, 09:15 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,689
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

This library requires .Net CF 2.0.
Otherwise you will receive "Invalid ..." error.
See the link above for setup instructions.
Reply With Quote
  #4 (permalink)  
Old 08-29-2007, 09:11 AM
Junior Member
 
Join Date: Jul 2007
Location: Hong Kong
Posts: 49
Send a message via MSN to hung Send a message via Yahoo to hung Send a message via Skype™ to hung
Default

Hi Erel,

It seems the imagelibex saves only the background layer but not the forelayer. Any way to save backgound + transparent forelayer in one bmp?

Thanks,
__________________
Yours,

Dopod D810 WM6 GPS HSDPA 3G Wifi Bluetooth
Reply With Quote
  #5 (permalink)  
Old 08-29-2007, 10:33 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,689
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

You can save the ForeLayer using using Form.FImage.
It isn't possible to merge the two layers into one image.
Reply With Quote
  #6 (permalink)  
Old 09-02-2007, 02:01 PM
Junior Member
 
Join Date: Jul 2007
Location: Hong Kong
Posts: 49
Send a message via MSN to hung Send a message via Yahoo to hung Send a message via Skype™ to hung
Default

Quote:
Originally Posted by Erel View Post
You can save the ForeLayer using using Form.FImage.
It isn't possible to merge the two layers into one image.
FImage? In Imagelibex?

I have solve the problem by walkaround:
1. save the form1.image to a tmp image
2. use drawer to draw forelayer image to form1 background with transparency
3. save the form1 background
4. draw the tmp image back to form1 background

Not that slow. Make be in next verson u can allow save of background + foreground, or background only, or foregrorund only.

Thanks,
__________________
Yours,

Dopod D810 WM6 GPS HSDPA 3G Wifi Bluetooth
Reply With Quote
  #7 (permalink)  
Old 09-02-2007, 02:30 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,689
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Sorry but as you've wrote there is no FImage.
How are you drawing the forelayer on on the back layer?
Reply With Quote
  #8 (permalink)  
Old 09-03-2007, 01:55 PM
Junior Member
 
Join Date: Jul 2007
Location: Hong Kong
Posts: 49
Send a message via MSN to hung Send a message via Yahoo to hung Send a message via Skype™ to hung
Default

Quote:
Originally Posted by Erel View Post
Sorry but as you've wrote there is no FImage.
How are you drawing the forelayer on on the back layer?
oh. actually i load a image as mask (immask.image) and draw on the forelayer. what i mean draw the forelayer to background is simply draw teh immask.image to background layer.

I don't know how to copy/draw the forelayer to backgound.
__________________
Yours,

Dopod D810 WM6 GPS HSDPA 3G Wifi Bluetooth
Reply With Quote
  #9 (permalink)  
Old 09-04-2007, 07:14 PM
Senior Member
 
Join Date: Apr 2007
Location: Kindred,ND
Posts: 122
Awards Showcase
Beta Tester 
Total Awards: 1
Default

How can I save a portion of the image.
Reply With Quote
  #10 (permalink)  
Old 03-06-2009, 09:11 AM
Junior Member
 
Join Date: Jul 2007
Location: Hong Kong
Posts: 49
Send a message via MSN to hung Send a message via Yahoo to hung Send a message via Skype™ to hung
Red face Hi, Erel

Quote:
Originally Posted by hung View Post
oh. actually i load a image as mask (immask.image) and draw on the forelayer. what i mean draw the forelayer to background is simply draw teh immask.image to background layer.

I don't know how to copy/draw the forelayer to backgound.

Hi Erel,

This time the problem is:

I loaded a photo and draw on top a frame all to the from back layer (form.line).
Then most of my new drawings are on forelayer (form.fline).

I want to save image that is form.image, save 2nd image that is forelayer, and save 3rd image that is what are seen on screen (forelayer on top of form.image).

Besides redraw everything on background that I draw on forelayer, any other method?

THanks.
__________________
Yours,

Dopod D810 WM6 GPS HSDPA 3G Wifi Bluetooth
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 scott93727 Questions (Windows Mobile) 2 10-26-2008 11:44 AM
"Error saving file" N1c0_ds Bug Reports 0 09-14-2008 12:25 AM
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


All times are GMT. The time now is 07:31 AM.


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