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. image portion

image portion

Scheduled Pinned Locked Moved C / C++ / MFC
c++
9 Posts 7 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.
  • S Offline
    S Offline
    SilentWarrior
    wrote on last edited by
    #1

    is there a way i could get a specifc portion from an image in visual c++6. i meant to say if i had a image and i want to make another file of that image of its center portion only . looking forward from all the gurus of code

    C M E H 4 Replies Last reply
    0
    • S SilentWarrior

      is there a way i could get a specifc portion from an image in visual c++6. i meant to say if i had a image and i want to make another file of that image of its center portion only . looking forward from all the gurus of code

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      i'm sure the various image classes on this site can help. or, as always, i know where you can find a commercial solution... -c


      Cheap Oil. It's worth it!

      Image Processing?

      J M 2 Replies Last reply
      0
      • C Chris Losinger

        i'm sure the various image classes on this site can help. or, as always, i know where you can find a commercial solution... -c


        Cheap Oil. It's worth it!

        Image Processing?

        J Offline
        J Offline
        Jeremy Falcon
        wrote on last edited by
        #3

        Chris Losinger wrote: or, as always, i know where you can find a commercial solution... One can only imagine! :rolleyes: Jeremy L. Falcon Homepage : Sonork = 100.16311
        "It was a blind man who taught me how to see." - Aerosmith

        C 1 Reply Last reply
        0
        • S SilentWarrior

          is there a way i could get a specifc portion from an image in visual c++6. i meant to say if i had a image and i want to make another file of that image of its center portion only . looking forward from all the gurus of code

          M Offline
          M Offline
          moredip
          wrote on last edited by
          #4

          If the image is a bitmap (DIB or DDB) you could probably use something like DrawDIBDraw(). HTH, Pete

          1 Reply Last reply
          0
          • J Jeremy Falcon

            Chris Losinger wrote: or, as always, i know where you can find a commercial solution... One can only imagine! :rolleyes: Jeremy L. Falcon Homepage : Sonork = 100.16311
            "It was a blind man who taught me how to see." - Aerosmith

            C Offline
            C Offline
            Chris Losinger
            wrote on last edited by
            #5

            i always mention the stuff here first! :) -c


            Cheap Oil. It's worth it!

            Image Processing?

            J 1 Reply Last reply
            0
            • C Chris Losinger

              i always mention the stuff here first! :) -c


              Cheap Oil. It's worth it!

              Image Processing?

              J Offline
              J Offline
              Jeremy Falcon
              wrote on last edited by
              #6

              Chris Losinger wrote: i always mention the stuff here first! It really is a nice library. I for one will revisit it if I start a project requiring serious imagine processing. Jeremy L. Falcon Homepage : Sonork = 100.16311
              "It was a blind man who taught me how to see." - Aerosmith

              1 Reply Last reply
              0
              • S SilentWarrior

                is there a way i could get a specifc portion from an image in visual c++6. i meant to say if i had a image and i want to make another file of that image of its center portion only . looking forward from all the gurus of code

                E Offline
                E Offline
                Ed Gadziemski
                wrote on last edited by
                #7

                I think you can use the BitBlt function to clip your original image. Set the destination size to the size of the center portion you'll be copying. Set the source x and y coordinates to the top-left point of where you want to start copying from on the original image. For information about BitBlt, see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps\_0fzo.asp

                1 Reply Last reply
                0
                • C Chris Losinger

                  i'm sure the various image classes on this site can help. or, as always, i know where you can find a commercial solution... -c


                  Cheap Oil. It's worth it!

                  Image Processing?

                  M Offline
                  M Offline
                  Marc Richarme
                  wrote on last edited by
                  #8

                  Chris Losinger wrote: or, as always, i know where you can find a commercial solution... ...or use paintlib :)

                  Cheers,
                  Marc

                  :beer: Click to see my *real* signature :beer:

                  1 Reply Last reply
                  0
                  • S SilentWarrior

                    is there a way i could get a specifc portion from an image in visual c++6. i meant to say if i had a image and i want to make another file of that image of its center portion only . looking forward from all the gurus of code

                    H Offline
                    H Offline
                    hkprs
                    wrote on last edited by
                    #9

                    hi, may be if u can load it to the screen DC u can save any part of the image.. Hope this helps.. Regards hkprs

                    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