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 / C++ / MFC
  4. loading and displaying images

loading and displaying images

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutoriallearning
7 Posts 4 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.
  • F Offline
    F Offline
    Fatima Tuz Zahra
    wrote on last edited by
    #1

    Hi.. I m working on image processing...i m beginner of VC++ 6.0..i dont know how to load and display image meanz if i open any image through file dialoug it will display in non client area of window in SDI..

    Z 1 Reply Last reply
    0
    • F Fatima Tuz Zahra

      Hi.. I m working on image processing...i m beginner of VC++ 6.0..i dont know how to load and display image meanz if i open any image through file dialoug it will display in non client area of window in SDI..

      Z Offline
      Z Offline
      zubair_ahmed
      wrote on last edited by
      #2

      try this ,you will just have to pass the device context to the class, http://www.codeproject.com/bitmap/cpicture.asp Z.A

      F 1 Reply Last reply
      0
      • Z zubair_ahmed

        try this ,you will just have to pass the device context to the class, http://www.codeproject.com/bitmap/cpicture.asp Z.A

        F Offline
        F Offline
        Fatima Tuz Zahra
        wrote on last edited by
        #3

        i m making Paint..i need memory device context i did it but it doesnt work did like daT static int i=0; if(i==0) { memDC.CreateCompatibleDC(pDC); i++; } pDC->BitBlt(20,10,436,364,&memDC,0,0,SRCCOPY); if i draw line i call invalidate it repaints so wht i draw in my device context i also draw in mem dc but it doesnt work???

        I 1 Reply Last reply
        0
        • F Fatima Tuz Zahra

          i m making Paint..i need memory device context i did it but it doesnt work did like daT static int i=0; if(i==0) { memDC.CreateCompatibleDC(pDC); i++; } pDC->BitBlt(20,10,436,364,&memDC,0,0,SRCCOPY); if i draw line i call invalidate it repaints so wht i draw in my device context i also draw in mem dc but it doesnt work???

          I Offline
          I Offline
          includeh10
          wrote on last edited by
          #4

          you need to select the bitmap into your mem DC by SelectObject(...) function.


          A nice tool for optimizing your Microsoft html-help contents. Includeh10

          F 1 Reply Last reply
          0
          • I includeh10

            you need to select the bitmap into your mem DC by SelectObject(...) function.


            A nice tool for optimizing your Microsoft html-help contents. Includeh10

            F Offline
            F Offline
            Fatima Tuz Zahra
            wrote on last edited by
            #5

            i tried but it gives assertion failure

            I T 2 Replies Last reply
            0
            • F Fatima Tuz Zahra

              i tried but it gives assertion failure

              I Offline
              I Offline
              includeh10
              wrote on last edited by
              #6

              there are million of samples in VC disk. try to search the function you used inside these samples. VC samples are first place to go for learning something new. when you test your functions (calling process), be careful to find which function doesn't work.


              A nice tool for optimizing your Microsoft html-help contents. Includeh10

              1 Reply Last reply
              0
              • F Fatima Tuz Zahra

                i tried but it gives assertion failure

                T Offline
                T Offline
                ThatsAlok
                wrote on last edited by
                #7

                Fatima Tuz Zahra wrote:

                tried but it gives assertion failure

                try this class/ article :- http://www.codeproject.com/bitmap/extendedbitmap2.asp[^]

                "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                cheers, Alok Gupta VC Forum Q&A :- I/ IV

                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