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. bitmap zooming

bitmap zooming

Scheduled Pinned Locked Moved C / C++ / MFC
graphicshelpquestion
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.
  • Z Offline
    Z Offline
    Zeeshan Bilal
    wrote on last edited by
    #1

    hi, I want to zoom in and zoom out a bitmap. how can i do this any sample ,, or help. thanx

    P 1 Reply Last reply
    0
    • Z Zeeshan Bilal

      hi, I want to zoom in and zoom out a bitmap. how can i do this any sample ,, or help. thanx

      P Offline
      P Offline
      PJ Arends
      wrote on last edited by
      #2

      http://www.codeproject.com/miscctrl/wndimg.asp[^] The referenced article uses StretchBlt() to scale the image.


      [

      ](http://www.canucks.com)"You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04 Within you lies the power for good - Use it!

      Z 1 Reply Last reply
      0
      • P PJ Arends

        http://www.codeproject.com/miscctrl/wndimg.asp[^] The referenced article uses StretchBlt() to scale the image.


        [

        ](http://www.canucks.com)"You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04 Within you lies the power for good - Use it!

        Z Offline
        Z Offline
        Zeeshan Bilal
        wrote on last edited by
        #3

        Hi , thanx for guiding me . But i m not getting any clue from this. I only want to zoom it ,,ur sample application is doing many things i m confused with this waitng for more prompt answer thanx

        P 1 Reply Last reply
        0
        • Z Zeeshan Bilal

          Hi , thanx for guiding me . But i m not getting any clue from this. I only want to zoom it ,,ur sample application is doing many things i m confused with this waitng for more prompt answer thanx

          P Offline
          P Offline
          PJ Arends
          wrote on last edited by
          #4

          If you want to zoom a bitmap, that is the same as stretching it. So use the StretchBlt() function. By specifying the destination coordinates to be larger than the source coordinates you will get the effect of zooming in. By making the destination coordinates smaller than the source coordinates you get the effect of zooming out. Look up StretchBlt() (or CDC::StretchBlt()) in MSDN for more information.


          [

          ](http://www.canucks.com)"You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04 Within you lies the power for good - Use it!

          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