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. Save Image in Harddisk.

Save Image in Harddisk.

Scheduled Pinned Locked Moved C / C++ / MFC
questiongraphicshelp
5 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.
  • A Offline
    A Offline
    ashwath1979
    wrote on last edited by
    #1

    I have displayed a bitmap on the screen.Now i want to save it in the harddisk after performing some painting operations on it.How do i achieve this?Please help. Thanking you in advance, Ashwath.

    E K 2 Replies Last reply
    0
    • A ashwath1979

      I have displayed a bitmap on the screen.Now i want to save it in the harddisk after performing some painting operations on it.How do i achieve this?Please help. Thanking you in advance, Ashwath.

      E Offline
      E Offline
      Eugen Podsypalnikov
      wrote on last edited by
      #2

      Try it :) :

      CImage::Attach(HBITMAP);
      CImage::Save(LPCTSTR);
      CImage::Detach();

      virtual void BeHappy() = 0;

      A 1 Reply Last reply
      0
      • E Eugen Podsypalnikov

        Try it :) :

        CImage::Attach(HBITMAP);
        CImage::Save(LPCTSTR);
        CImage::Detach();

        virtual void BeHappy() = 0;

        A Offline
        A Offline
        ashwath1979
        wrote on last edited by
        #3

        Please let me know if we can use CImage code in VS2008. Thanks, Ashwath.

        E 1 Reply Last reply
        0
        • A ashwath1979

          Please let me know if we can use CImage code in VS2008. Thanks, Ashwath.

          E Offline
          E Offline
          Eugen Podsypalnikov
          wrote on last edited by
          #4

          Yes, just include <atlimage.h> :)

          virtual void BeHappy() = 0;

          1 Reply Last reply
          0
          • A ashwath1979

            I have displayed a bitmap on the screen.Now i want to save it in the harddisk after performing some painting operations on it.How do i achieve this?Please help. Thanking you in advance, Ashwath.

            K Offline
            K Offline
            KingsGambit
            wrote on last edited by
            #5

            May be you can take a look at the following MSDN link as well: http://msdn.microsoft.com/en-us/library/dd145119(VS.85).aspx[^]

            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