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. jpg support

jpg support

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

    Does anyone know if visual c++ 6 MFC will let me insert jpg files. I have found in the properties box of a picture object Bitmap, Icon, etc. I tried importing a jpg, but did not seem to work. Regards Paul

    C T 2 Replies Last reply
    0
    • S Stirfie

      Does anyone know if visual c++ 6 MFC will let me insert jpg files. I have found in the properties box of a picture object Bitmap, Icon, etc. I tried importing a jpg, but did not seem to work. Regards Paul

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      What do you want to do with the jpg ? GDI+ will allow you to read and write JPGs, as well as draw to them/draw them to a Graphics object ( which you can build from a HDC ) Christian Graus - Microsoft MVP - C++

      PJ ArendsP 1 Reply Last reply
      0
      • C Christian Graus

        What do you want to do with the jpg ? GDI+ will allow you to read and write JPGs, as well as draw to them/draw them to a Graphics object ( which you can build from a HDC ) Christian Graus - Microsoft MVP - C++

        PJ ArendsP Offline
        PJ ArendsP Offline
        PJ Arends
        wrote on last edited by
        #3

        And if you do not want to have to distribute the GDI+ library (1661 KB) you can use the IPicture interface to read and display jpgs. Although I do not think IPicture can be used to save jpgs.


        "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04 Within you lies the power for good - Use it!


        Honoured as one of The Most Helpful Members of 2004

        Within you lies the power for good; Use it!

        1 Reply Last reply
        0
        • S Stirfie

          Does anyone know if visual c++ 6 MFC will let me insert jpg files. I have found in the properties box of a picture object Bitmap, Icon, etc. I tried importing a jpg, but did not seem to work. Regards Paul

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

          this MS Sample Will help you Loading Jpeg,Gif and other popular format with ease! http://support.microsoft.com/support/kb/articles/Q218/9/72.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

          S 1 Reply Last reply
          0
          • T ThatsAlok

            this MS Sample Will help you Loading Jpeg,Gif and other popular format with ease! http://support.microsoft.com/support/kb/articles/Q218/9/72.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

            S Offline
            S Offline
            Stirfie
            wrote on last edited by
            #5

            Thanks Guys

            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