locked
How to rotate image in wince? RRS feed

  • Question

  • Hi all,

    How to rotate an image following mouse movement in wince 6.0? Thanks! 

    Monday, April 11, 2011 12:14 PM

Answers

    • Proposed as answer by WmDev Tuesday, April 12, 2011 10:34 AM
    • Marked as answer by Jesse Jiang Wednesday, May 11, 2011 9:49 AM
    Tuesday, April 12, 2011 10:27 AM
  • 120 images sounds a bit laborious.

    It's way easier to manipulate images in full windows.

    So you could perhaps write something that created those images on a pc and then whack em into your project.  You say it's the middle that changes?  So one big image and 120 centres which you manipulate into a new graphic... maybe.

    Must admit it's not something I'd try unless someone was really pushing for it.

     

    My last thought is silverlight.

    Win CE 6 r3 and onwards you can do silverlight with c++

    With the full pc version of silverlight you could bind the rotatetransform of a graphical object to a dependency property.   No idea whether that's in the embedded version.

    • Proposed as answer by Jesse Jiang Monday, April 25, 2011 8:02 AM
    • Marked as answer by MIKENJE Thursday, April 28, 2011 3:19 AM
    Tuesday, April 19, 2011 6:26 PM

All replies

  • Monday, April 11, 2011 12:26 PM
  • Hi,

    If you are looking for screen transitions, Please follow this:

    http://www.codeproject.com/KB/windows/SlideView.aspx

    Also follow this link for different kind of Animations:

    http://www.codeproject.com/KB/windows/animationctrl.aspx

    http://www.codeproject.com/KB/windows/AnimatedEffects.aspx

    http://www.codeproject.com/KB/windows/gifManipulator.aspx

     

    Regards,

    Malleswar

    Hi Mealleswar,

    Thanks for your reply! But this is not the effect i want. I just want to rotate an image around its center. Thanks!

    Tuesday, April 12, 2011 3:09 AM
    • Proposed as answer by WmDev Tuesday, April 12, 2011 10:34 AM
    • Marked as answer by Jesse Jiang Wednesday, May 11, 2011 9:49 AM
    Tuesday, April 12, 2011 10:27 AM
  • You mean like

    http://www.codeproject.com/KB/graphics/ImageRotationForCF.aspx?msg=3093338


    Hi Andy1559,

    Thanks for your reply! I need rotate with any angle, maybe its too difficult to do.

    Tuesday, April 12, 2011 12:03 PM
  • The alternatives I've seen manipulate pixel by pixel.

    Its possible to write something to do that but it'd be hard work mate.

    There's a good reason all the examples do this by 90 degree steps.

    Plus once you wrote it you might not be very happy.

    It'll be very slooooooooooooooow.

    I'd leave imagine manipulation like this to desktio where rotatetransform makes it easy.

    Tuesday, April 12, 2011 12:27 PM
  • Hi Andy,

    For my image is not too big and only parts of its pixels need to be rotated, maybe manipulate pixel by pixel is a method.

    Another problem is that it must do sin & cos actions which would cause inaccuracy message.

    Thanks!

    Tuesday, April 12, 2011 1:06 PM
  • Only part of the picture needs to be rotated?

    That rather sounds like it'd be harder rather than easier.

    If it's a small image could you get away with creating several versions and change the image?

    Pretty sure that'd be faster than bit by bit manipulation.

    Tuesday, April 12, 2011 1:39 PM
  • Hi,

    Can you provide some sample (image or general application)  which explains your requirement?

    Regards,

    Malleswar

    Wednesday, April 13, 2011 12:56 PM
  • Hi,

    Can you provide some sample (image or general application)  which explains your requirement?

    Regards,

    Malleswar

    Thanks for all replies!


    I found this effect in an vehicle entertainment system. Its os is WINCE and hardware platform is  Samsung 2450.  And i found there are d3d and ddraw dlls in its windows folder, so maybe they use d3d to implement this effect. But i am not sure whether Samsung 2450 can support d3d!

    Sorry for that i dont know how to post my image! Thanks again!

    Thursday, April 14, 2011 11:00 AM
  • An animated gif functions by having a bunch of images.

    My suggestion is to explicitly form a bunch of images with varying rotations and use that similarly.

    Is that no good to you and if not, why?

    Thursday, April 14, 2011 1:44 PM
  • An animated gif functions by having a bunch of images.

    My suggestion is to explicitly form a bunch of images with varying rotations and use that similarly.

    Is that no good to you and if not, why?


    Hi Andy,

    Thanks for your reply and sorry for so late to reply you!

    My image size is 327x325 and it need support rotate with PI/60. If use animate, 120 images would be enough.

    Saturday, April 16, 2011 10:08 AM
  • 120 images sounds a bit laborious.

    It's way easier to manipulate images in full windows.

    So you could perhaps write something that created those images on a pc and then whack em into your project.  You say it's the middle that changes?  So one big image and 120 centres which you manipulate into a new graphic... maybe.

    Must admit it's not something I'd try unless someone was really pushing for it.

     

    My last thought is silverlight.

    Win CE 6 r3 and onwards you can do silverlight with c++

    With the full pc version of silverlight you could bind the rotatetransform of a graphical object to a dependency property.   No idea whether that's in the embedded version.

    • Proposed as answer by Jesse Jiang Monday, April 25, 2011 8:02 AM
    • Marked as answer by MIKENJE Thursday, April 28, 2011 3:19 AM
    Tuesday, April 19, 2011 6:26 PM