Re: Rotate Image

Tech-Archive recommends: Fix windows errors by optimizing your registry



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
.



Relevant Pages

  • Re: CF V2 and image rotation
    ... > the rotation not the framework, you have to make sure your form will be ... I am not Chris Tacke, but I'll try to comment on this stuff:) ... hardware or video driver level. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Newbie looking for info on basic graphics with Delphi.
    ... The wireframe itself is of course three-dimensional; for rendering ... \y/ over an angle phi is done by ... Even knowing *why* it can't really do anything else than rotate ... since rotation is about the model's origin, ...
    (comp.lang.pascal.delphi.misc)
  • Re: translation and rotation in Euclidean space
    ... In the second place a single rotation only requires a 2x2 matrix. ... do and wish to rotate and translate a scene it is helpful if you process ... a 2d rank tensor, say Lij, a vector is a 1st rank tensor say Xi and ...
    (sci.physics.relativity)
  • Re: newbie: rotating meshes
    ... The problems I noticed, were if you for example rolled the ship, then tried ... not the rolled x axis, which says to me that the math for matrix ... concatenation doesnt rotate the values of the matrix correctly is some ... which meant the y roation rotated the models x axis whereas the z rotation ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: translation and rotation in Euclidean space
    ... In the second place a single rotation only requires a 2x2 matrix. ... do and wish to rotate and translate a scene it is helpful if you process ... a 2d rank tensor, say Lij, a vector is a 1st rank tensor say Xi and ...
    (sci.physics.relativity)