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. Managed C++/CLI
  4. How do you reset the bounds when scaling a Matrix object

How do you reset the bounds when scaling a Matrix object

Scheduled Pinned Locked Moved Managed C++/CLI
csharpc++visual-studioquestionworkspace
2 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.
  • B Offline
    B Offline
    BuckBrown
    wrote on last edited by
    #1

    Hi, I'm using Visual Studio 2005 C++/CLI. I have setup a zoom function that uses a Matrix class. Changing the Scale of the matrix will cause the image on the screen to zoom in or zoom out. On the zoom in function the upper left corner of the screen (0,0) is anchored so it appears that you are zooming in on the upper left corner. I can't seem to find the correct way to change the bounds of the screen because all of the Screen class properties seem to be read only. Is a screen class the right approach? Ideally I want the zoom functions to zoom relative to where the mouse is clicked on the screen. Thanks, Buck Brown

    L 1 Reply Last reply
    0
    • B BuckBrown

      Hi, I'm using Visual Studio 2005 C++/CLI. I have setup a zoom function that uses a Matrix class. Changing the Scale of the matrix will cause the image on the screen to zoom in or zoom out. On the zoom in function the upper left corner of the screen (0,0) is anchored so it appears that you are zooming in on the upper left corner. I can't seem to find the correct way to change the bounds of the screen because all of the Screen class properties seem to be read only. Is a screen class the right approach? Ideally I want the zoom functions to zoom relative to where the mouse is clicked on the screen. Thanks, Buck Brown

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      These should help point you in the right direction http://www.codeproject.com/KB/graphics/PictureBoxZoom.aspx[^] http://www.codeproject.com/KB/cpp/GDI_.aspx[^]

      led mike

      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