Rotate image? Pls Help

.net Singapore
  • 10 years ago

    How to rotate Image?Pls Help

    can someone provide me with a sample source code for it

  • 10 years ago
    What happened?  Did you give up on the other thread?  I'm not sure what to tell you.  I believe I asked a few questions in the other thread and gave all the tips I can.  Again, what version of visual studio are you using?  The System.Drawing.Image object has a RotateFlip method which you've already attempted to use.  At least I know this method exists from .net framework 1.1 and up.  In visual studio try going to help and clicking on "about microsoft visual studio".  It should tell you what framework it's using.  What does it say?  This code should work.  Try creating a completly new project and test the code.
            Dim img As Image = Image.FromFile("c:\test.jpg")
            img.RotateFlip(RotateFlipType.Rotate180FlipNone)
            PictureBox1.Image = img
  • 10 years ago
    i know what problem. the problem is this code can work on window but cannot work on Pocket PC
  • 10 years ago
    pls help me for the source code to how to rotate image on pocket pc?
  • 10 years ago
    Or try Memory Bitmap unsafe class which uses memory lock to access pixels directly. It is free to find at goog. Idea: manipulate its matrix and data [pt x pt] rotation. But it allows you only N x 90° rotations and all axes tilting.

  • 10 years ago

    For mobile development, the Smart Device framework from  http://www.opennetcf.com/ is very useful and the community edition is free.

    After installing it, you can rotate an image by calling: OpenNETCF.Drawing.Imaging.ImageUtils.Rotate(....

     

  • 10 years ago
    opennetcf is it almost same as Vb.net for poket Pc?

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Computer science education cannot make anybody an expert programmer any more than studying brushes and pigment can make somebody an expert painter” - Eric Raymond