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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Animation with GDI+

Animation with GDI+

Scheduled Pinned Locked Moved C / C++ / MFC
winformsgraphicstutorialquestion
6 Posts 3 Posters 1 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.
  • N Offline
    N Offline
    nightrider13
    wrote on last edited by
    #1

    Hi, I'm trying to animate a single line which I've created with DrawLine(). The only possibility I know is using TranslateTransform() but with calling this method there is only made a copy of the old line. So has anyone an idea how to perform an animation with a single line? Would be really appreciate for answers. :)

    P 1 Reply Last reply
    0
    • N nightrider13

      Hi, I'm trying to animate a single line which I've created with DrawLine(). The only possibility I know is using TranslateTransform() but with calling this method there is only made a copy of the old line. So has anyone an idea how to perform an animation with a single line? Would be really appreciate for answers. :)

      P Offline
      P Offline
      Programm3r
      wrote on last edited by
      #2

      I have no idea if this might mean anything to you but .... oh well ... http://www.microsoft.com/downloads/details.aspx?FamilyID=6A63AB9C-DF12-4D41-933C-BE590FEAA05A&displaylang=en[^]

      Regards Programm3r

      N 1 Reply Last reply
      0
      • P Programm3r

        I have no idea if this might mean anything to you but .... oh well ... http://www.microsoft.com/downloads/details.aspx?FamilyID=6A63AB9C-DF12-4D41-933C-BE590FEAA05A&displaylang=en[^]

        Regards Programm3r

        N Offline
        N Offline
        nightrider13
        wrote on last edited by
        #3

        Ohm at first thank you for your fast reply but I've already downloaded the redist. ;) The only thing I want to do is to realize a small animation only with lines. The thing is I would know how to do that with Bitmaps because there are many tutorials about that. But with lines or rectangles or something... I don't know

        N 1 Reply Last reply
        0
        • N nightrider13

          Ohm at first thank you for your fast reply but I've already downloaded the redist. ;) The only thing I want to do is to realize a small animation only with lines. The thing is I would know how to do that with Bitmaps because there are many tutorials about that. But with lines or rectangles or something... I don't know

          N Offline
          N Offline
          nightrider13
          wrote on last edited by
          #4

          Doesn't has to be GDI+. Could be everything else. Only requirements are drawing, moving, scaling, rotating shapes. I have considered DirectX or OpenGl but it sounds a bit too complicated for only doing such easy things...

          H 1 Reply Last reply
          0
          • N nightrider13

            Doesn't has to be GDI+. Could be everything else. Only requirements are drawing, moving, scaling, rotating shapes. I have considered DirectX or OpenGl but it sounds a bit too complicated for only doing such easy things...

            H Offline
            H Offline
            Hamid Taebi
            wrote on last edited by
            #5

            Whats yoru problem with TranslateTransform?

            _**


            **_

            WhiteSky


            N 1 Reply Last reply
            0
            • H Hamid Taebi

              Whats yoru problem with TranslateTransform?

              _**


              **_

              WhiteSky


              N Offline
              N Offline
              nightrider13
              wrote on last edited by
              #6

              TranslateTransform only copies a line and doesn't move it. So there is still a line at the previous position. -- modified at 19:09 Tuesday 15th August, 2006

              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