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. Rotate rect

Rotate rect

Scheduled Pinned Locked Moved C#
csharpwinformsgraphicshelptutorial
5 Posts 4 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.
  • T Offline
    T Offline
    Try
    wrote on last edited by
    #1

    Hi All, Prerequisites: * VC#.NET and GDI+. * Windows forms. * A rectangle is drawn on the form along with rect tracker. Problem: How to rotate rect and rect tracker?

    D P P 3 Replies Last reply
    0
    • T Try

      Hi All, Prerequisites: * VC#.NET and GDI+. * Windows forms. * A rectangle is drawn on the form along with rect tracker. Problem: How to rotate rect and rect tracker?

      D Offline
      D Offline
      DavidNohejl
      wrote on last edited by
      #2

      Hint: Take a look at classes in System.Drawing.Drawing2D namespace, namely Matrix class.


      [My Blog]
      "Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - RĂ¼diger Klaehn
      "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe

      1 Reply Last reply
      0
      • T Try

        Hi All, Prerequisites: * VC#.NET and GDI+. * Windows forms. * A rectangle is drawn on the form along with rect tracker. Problem: How to rotate rect and rect tracker?

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        Write some code in C# that rotates the rectangle and tracker. Sheesh, come on. We don't write your code for you - if you want that try rentacoder.com. Write some code and if it doesn't work, show it to us so that we know that you've at least tried for yourself.

        Deja View - the feeling that you've seen this post before.

        My blog | My articles

        T 1 Reply Last reply
        0
        • P Pete OHanlon

          Write some code in C# that rotates the rectangle and tracker. Sheesh, come on. We don't write your code for you - if you want that try rentacoder.com. Write some code and if it doesn't work, show it to us so that we know that you've at least tried for yourself.

          Deja View - the feeling that you've seen this post before.

          My blog | My articles

          T Offline
          T Offline
          Try
          wrote on last edited by
          #4

          I have not asked anyone to write code for me, mister. Some guy "dnh" has responded (about Matrix). Now i am trying to write the code. That's enough. I think u have reacted like this after seeing my awful question format.

          1 Reply Last reply
          0
          • T Try

            Hi All, Prerequisites: * VC#.NET and GDI+. * Windows forms. * A rectangle is drawn on the form along with rect tracker. Problem: How to rotate rect and rect tracker?

            P Offline
            P Offline
            PIEBALDconsult
            wrote on last edited by
            #5

            Don't you just swap the Height and Width of the rectangle? :-D

            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