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#
  4. Image Panning

Image Panning

Scheduled Pinned Locked Moved C#
questioncsharp
4 Posts 2 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.
  • H Offline
    H Offline
    Heks
    wrote on last edited by
    #1

    I am trying to create a basic image viewer. I've looked all around the web and can't find any code to port to C# for image panning. What is the best way to implement image panning in C#? Would I have to do something like draw/remove x pixels depending on mouse movement or is there already a way to do it? Also, if you have a url with code in another language for image panning, please supply it :D Thanks.

    D H 2 Replies Last reply
    0
    • H Heks

      I am trying to create a basic image viewer. I've looked all around the web and can't find any code to port to C# for image panning. What is the best way to implement image panning in C#? Would I have to do something like draw/remove x pixels depending on mouse movement or is there already a way to do it? Also, if you have a url with code in another language for image panning, please supply it :D Thanks.

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

      You should be able to move the image object, not the actual pixels themselves. If that's all you want to do, then use the SetBounds function.

      H 1 Reply Last reply
      0
      • D DougW48

        You should be able to move the image object, not the actual pixels themselves. If that's all you want to do, then use the SetBounds function.

        H Offline
        H Offline
        Heks
        wrote on last edited by
        #3

        I'm a bit of a noob :D Can you explain how I would use SetBounds to pan images? Thanks for the reply.

        1 Reply Last reply
        0
        • H Heks

          I am trying to create a basic image viewer. I've looked all around the web and can't find any code to port to C# for image panning. What is the best way to implement image panning in C#? Would I have to do something like draw/remove x pixels depending on mouse movement or is there already a way to do it? Also, if you have a url with code in another language for image panning, please supply it :D Thanks.

          H Offline
          H Offline
          Heks
          wrote on last edited by
          #4

          So no one knows how to implement image panning in c#? :(

          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