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
  #11 (permalink)  
Old 03-06-2009, 02:44 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,689
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

For the forelayer you will need to do something similar to klaus suggestion: http://www.basic4ppc.com/forum/quest...html#post22901
See this example for capturing a screenshot of the whole screen: http://www.basic4ppc.com/forum/share...pture-app.html
Reply With Quote
  #12 (permalink)  
Old 03-06-2009, 04:50 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,460
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Here you have an updated version of the the SaveForelayer example:

There is one BitmapEx object for each image with it's DrawerEx:
- bmpBackground holds the background image
- drwBackground allows drawing onto the background image

- bmpForelayer holde the forelayer image
- drwForelayer allows drawing onto the forelayer image

- bmpImage holds the combination of both above images
- drwImage allows drawing onto it

two more DrawerEx objects
- drwMain drawer to draw onto the form's backgound
- drwMainForelayer drawer to draw anto the form's forelayer

Run the program and:
- click on 'Draw on forelayer' draws onto bmpForelayer and copies it to the form's forelayer
- click on 'Erase forelayer' erases the form's forelayer
- click an 'Add forelayer on background' copies both bmpBackground and bmpForelayer on bmpImage

Now you can show on the form all 3 bitmaps.
- Show both shows bmpImage
- Show background shows bmpBackground
- Show forelayer shows the forelayer

You can save the 3 imagaes to files.

Then with 'Transfer both on background' you transfer bmpImage to bmpBackground.

Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #13 (permalink)  
Old 03-07-2009, 02:46 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

Seems that is the only way. Thanks Klaus & Erel.
__________________
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