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. Deleting Image IN VC++

Deleting Image IN VC++

Scheduled Pinned Locked Moved C / C++ / MFC
c++help
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.
  • R Offline
    R Offline
    raajpatel
    wrote on last edited by
    #1

    Hi, I am working in vc++ mfc and i have been stuck some where I want to overwrite a selected Image in a particular path. Please help out me

    J CPalliniC 2 Replies Last reply
    0
    • R raajpatel

      Hi, I am working in vc++ mfc and i have been stuck some where I want to overwrite a selected Image in a particular path. Please help out me

      J Offline
      J Offline
      Jochen Arndt
      wrote on last edited by
      #2

      raajpatel wrote:

      I want to overwrite a selected Image in a particular path

      That is rather unclear. Please edit your question and be more specific. Are you referring to an image file stored on the disk with known path and file name? What is the image source that you want to store (another file, a bitmap in memory)? What image format should be used (BMP, JPG, TIFF, PNG)?

      R 1 Reply Last reply
      0
      • R raajpatel

        Hi, I am working in vc++ mfc and i have been stuck some where I want to overwrite a selected Image in a particular path. Please help out me

        CPalliniC Offline
        CPalliniC Offline
        CPallini
        wrote on last edited by
        #3

        'An image on a particular path' sounds like a file, to me. To overwrite the file, open it for writing and do write the new image data to it.

        In testa che avete, signor di Ceprano?

        1 Reply Last reply
        0
        • J Jochen Arndt

          raajpatel wrote:

          I want to overwrite a selected Image in a particular path

          That is rather unclear. Please edit your question and be more specific. Are you referring to an image file stored on the disk with known path and file name? What is the image source that you want to store (another file, a bitmap in memory)? What image format should be used (BMP, JPG, TIFF, PNG)?

          R Offline
          R Offline
          raajpatel
          wrote on last edited by
          #4

          Hi, I want to replace same image and over same path with resized on a disk and format is "gif" file

          J 1 Reply Last reply
          0
          • R raajpatel

            Hi, I want to replace same image and over same path with resized on a disk and format is "gif" file

            J Offline
            J Offline
            Jochen Arndt
            wrote on last edited by
            #5

            You can use the CImage Class[^]. Use the Save() function with ImageFormatGIF to save the image as GIF. How to create the CImage depends on the source. It can be loaded from file or passed an existing in memory bitmap.

            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