Re: Rotate Image
- From: Christopher Fairbairn <christopher@xxxxxxxxxxxxxx>
- Date: Tue, 04 Mar 2008 23:20:44 +1300
Hi,
JB wrote:
I know there isn't a native command for rotating images in the Compact Framework. I am looking for a way to do this. Simple 90 degree rotation. I've found some stuff in the newsgroups, but nothing I can get working. If anyone has any sample code they can provide on how to do rotation of an image file on the Compact Framework, it would be appreciated. Particularly, I want to open an image file, rotate it 90 degrees (from landscape to portrait) and re-save it back.
Here are some resources that may give you some starting points:
Fast Image Rotation For .NET Compact Framework - http://www.codeproject.com/KB/graphics/ImageRotationForCF.aspx
How to rotate a image in smartphone - http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1178946&SiteID=1
OpenNETCF SDF 2.0 - Imaging API wrapper - http://blog.opennetcf.org/afeinman/PermaLink,guid,8fb585db-bd44-42fe-afa9-07b116c6d2ba.aspx (see section on image transformations)
The OpenNETCF SDF 2.0 based solution is a pretty good way to go if you are looking for a solution which doesn't involve you writing a significant amount of code to perform the actual rotation. You can download the binaries for the Community Edition via http://www.opennetcf.com/Products/SmartDeviceFramework/CommunityEdition/tabid/67/Default.aspx
Hope this helps,
Christopher Fairbairn
.
- References:
- Rotate Image
- From: JB
- Rotate Image
- Prev by Date: Re: Creating a shell link (CF3.5 C#)
- Next by Date: What to use dataset or xml in compact framework
- Previous by thread: Rotate Image
- Next by thread: Mobile Application
- Index(es):
Relevant Pages
|
|