Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Code Samples & Tips > Additional Libraries
Home Register FAQ Members List 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, 08:13 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,141
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, 271 views)
Reply With Quote
  #2 (permalink)  
Old 06-08-2007, 10:07 AM
Senior Member
 
Join Date: May 2007
Posts: 188
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, 10:15 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,141
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, 10:11 AM
Junior Member
 
Join Date: Jul 2007
Location: Hong Kong
Posts: 42
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, 11:33 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,141
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, 03:01 PM
Junior Member
 
Join Date: Jul 2007
Location: Hong Kong
Posts: 42
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, 03:30 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,141
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, 02:55 PM
Junior Member
 
Join Date: Jul 2007
Location: Hong Kong
Posts: 42
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, 08:14 PM
Knows the basics
 
Join Date: Apr 2007
Location: Kindred,ND
Posts: 99
Default

How can I save a portion of the image.
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving An Image scott93727 Questions & Help Needed 2 10-26-2008 12:44 PM
"Error saving file" N1c0_ds Bug Reports 0 09-14-2008 01:25 AM
Saving a picture from a file to the database origami Questions & Help Needed 3 05-09-2008 10:20 PM
Saving Image(portion of it) bdiscount Questions & Help Needed 1 09-05-2007 07:19 AM
Saving the screen to a file derez Questions & Help Needed 3 07-04-2007 12:08 PM


All times are GMT. The time now is 05:55 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0