Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Rotating image in C#

Rotating image in C#

Scheduled Pinned Locked Moved C#
tutorialcsharpgraphicsxmlhelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    CoolASL
    wrote on last edited by
    #1

    Hi all C# Gurus, Is it possible to rotate images using GDI or anything else. If yes (it must be) then please guide me through the process. Also, it would be nice if anyone can tell me how to read from XML files. Or alternately, please let me know any article on the same which i have surely missed :). Thanks in advance. Any help will be highly appreciated. *** Who said nothing is impossible? I have been doing it for a long time ***

    J W 2 Replies Last reply
    0
    • C CoolASL

      Hi all C# Gurus, Is it possible to rotate images using GDI or anything else. If yes (it must be) then please guide me through the process. Also, it would be nice if anyone can tell me how to read from XML files. Or alternately, please let me know any article on the same which i have surely missed :). Thanks in advance. Any help will be highly appreciated. *** Who said nothing is impossible? I have been doing it for a long time ***

      J Offline
      J Offline
      JuanAlbertoMD
      wrote on last edited by
      #2

      Hello!! Well about rotate images i know a library in C# where you can draw many figures and insert images and you can rotate, scale and a lot more it's pretty cool: http://www.cs.umd.edu/hcil/piccolo/[^] Regards, Alberto Martinez

      1 Reply Last reply
      0
      • C CoolASL

        Hi all C# Gurus, Is it possible to rotate images using GDI or anything else. If yes (it must be) then please guide me through the process. Also, it would be nice if anyone can tell me how to read from XML files. Or alternately, please let me know any article on the same which i have surely missed :). Thanks in advance. Any help will be highly appreciated. *** Who said nothing is impossible? I have been doing it for a long time ***

        W Offline
        W Offline
        Werdna
        wrote on last edited by
        #3

        An easy way to draw rotated image is to use transformations: Graphics g = ...; g.RotateTransform(angle); g.DrawImage(...) if you want to rotate around any point, you can use matrix. Matrix m = new Matrix(); m.RotateAt(angle, new PointF(x, y)); g.Transform = m; g.DrawImage(...);

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups