Re: Rotate Image



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: 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: Object rotation
    ... > need to translate back to the origin first, then rotate, then translate to ... For example rotations are ALWAYS around an axis so if you ... then moves on the new x axis after the Z rotation. ...
    (microsoft.public.win32.programmer.directx.managed)
  • Re: Rotating a Plane
    ... rotating the circle about a line in the ... onto x-y plane and then rotate points around this ... As to the direction of rotation, ... terms of x, y, z, a, b, and c to derive the transformation ...
    (comp.soft-sys.matlab)