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 / C++ / MFC
  4. Zooming a selected point of an Bitmap Image using MFC and OpenGL

Zooming a selected point of an Bitmap Image using MFC and OpenGL

Scheduled Pinned Locked Moved C / C++ / MFC
c++graphicsgame-devhelptutorial
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.
  • J Offline
    J Offline
    jagannathan thiruvengadathan
    wrote on last edited by
    #1

    Hello I have developed an application, which load the Bitmap Image as texture using openGL. My question is, how to zoom a particular point of an image when i click using the mouse left button. Will any body help by providing the suitable source code or Link , so that it help me a lot I am using VC++ ( MFC's MDI ) and OpenGL . Regards Jagannathan

    R N 2 Replies Last reply
    0
    • J jagannathan thiruvengadathan

      Hello I have developed an application, which load the Bitmap Image as texture using openGL. My question is, how to zoom a particular point of an image when i click using the mouse left button. Will any body help by providing the suitable source code or Link , so that it help me a lot I am using VC++ ( MFC's MDI ) and OpenGL . Regards Jagannathan

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #2

      See if this[^] helps.

      Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

      1 Reply Last reply
      0
      • J jagannathan thiruvengadathan

        Hello I have developed an application, which load the Bitmap Image as texture using openGL. My question is, how to zoom a particular point of an image when i click using the mouse left button. Will any body help by providing the suitable source code or Link , so that it help me a lot I am using VC++ ( MFC's MDI ) and OpenGL . Regards Jagannathan

        N Offline
        N Offline
        Nathan Holt at EMOM
        wrote on last edited by
        #3

        jagannathan thiruvengadathan wrote:

        Hello I have developed an application, which load the Bitmap Image as texture using openGL. My question is, how to zoom a particular point of an image when i click using the mouse left button. Will any body help by providing the suitable source code or Link , so that it help me a lot I am using VC++ ( MFC's MDI ) and OpenGL . Regards Jagannathan

        I had a similar problem when writing Clear Focus. I had to write code to reverse the OpenGL transform to convert a point on the screen to a ray in the 3D model. Then I used simple ray tracing to find which point on the 3D model I was pointing to. It helped to provide a marker object (in my case, just a glPoint) that always follows the mouse pointer so that you can see which point you'll be clicking. Nathan

        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