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. upside down Bitmap image

upside down Bitmap image

Scheduled Pinned Locked Moved C / C++ / MFC
graphicsc++dotnethelp
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.
  • U Offline
    U Offline
    User 477100
    wrote on last edited by
    #1

    By drawing Bitmap, utilizing "StretchBlt" (VC++ 6), I get upside down image. Please suggest ways to get the correct Bitmap picture. Any help would be greatly appreciated. German Ls2333@mail.biu.ac.il

    B D 2 Replies Last reply
    0
    • U User 477100

      By drawing Bitmap, utilizing "StretchBlt" (VC++ 6), I get upside down image. Please suggest ways to get the correct Bitmap picture. Any help would be greatly appreciated. German Ls2333@mail.biu.ac.il

      B Offline
      B Offline
      Brian Shifrin
      wrote on last edited by
      #2

      dc.SetWindowOrg(m_rect.TopLeft());

      1 Reply Last reply
      0
      • U User 477100

        By drawing Bitmap, utilizing "StretchBlt" (VC++ 6), I get upside down image. Please suggest ways to get the correct Bitmap picture. Any help would be greatly appreciated. German Ls2333@mail.biu.ac.il

        D Offline
        D Offline
        Dudi Avramov
        wrote on last edited by
        #3

        Change the hight sign. Read the MSDN snippet about StretchBlt: StretchBlt creates a mirror image of a bitmap if the signs of the nWidthSrc and nWidthDest parameters or if the nHeightSrc and nHeightDest parameters differ. If nWidthSrc and nWidthDest have different signs, the function creates a mirror image of the bitmap along the x-axis. If nHeightSrc and nHeightDest have different signs, the function creates a mirror image of the bitmap along the y-axis.

        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