Click here to Skip to main content
15,887,386 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Dear fellow Developers!

I'm using Visual Studio 2008, coding for WinCE in C#.
I made a form, where the user can select an image using a dialog box (an icon for an object, its parameters will be stored in a unique XML file). The chosen picture is shown in a pictureBox, the SizeMode is set to pictureBoxSizeMode.StretchImage.

I'd like to take a copy of the small icon picture, that the user can see in the pictureBox, and store it in a predetermined folder.


I think, it would be a good solution, to take a screenshot, because I know the exact position of the pictureBox.
The problem is: i can't figure out, how to take a screenshot in a WinCE project. All the tutorials and examples are using the CopyFromScreen method, which i think can't be used in CE. I'd be happy to read any other solutions too (about creating a stretched, resized copy of an existing image).


I'm a beginner, this is my first question -Hello CodeProject World!-, and my English isn't flawless either, I know, so please go easy on me ;)

-DBAtti-
Posted
Updated 6-Aug-12 21:32pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900