Rotate Image

J

JB

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.

Thanks!
 
C

Christopher Fairbairn

Hi,
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top