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 BMP to JPG

save BMP to JPG

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studiotutorialquestion
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.
  • K Offline
    K Offline
    kd8341
    wrote on last edited by
    #1

    I am using visual studio .net and want to save a BMP file to JPG format. How to do this? Is there a sample code for reference? Thanks.

    V Mircea PuiuM C 3 Replies Last reply
    0
    • K kd8341

      I am using visual studio .net and want to save a BMP file to JPG format. How to do this? Is there a sample code for reference? Thanks.

      V Offline
      V Offline
      V 0
      wrote on last edited by
      #2

      if it's really just the file you'd like to convert manually (not code) just do it in Paint, but I'm not sure you can load jpg into the resources. No hurries, no worries.

      K 1 Reply Last reply
      0
      • V V 0

        if it's really just the file you'd like to convert manually (not code) just do it in Paint, but I'm not sure you can load jpg into the resources. No hurries, no worries.

        K Offline
        K Offline
        kd8341
        wrote on last edited by
        #3

        Sorry, I didn't express myself clearly, but I need to convert BMP to JPG in run time(within program). Is there any sample code in Visual studio? Thanks a lot!

        1 Reply Last reply
        0
        • K kd8341

          I am using visual studio .net and want to save a BMP file to JPG format. How to do this? Is there a sample code for reference? Thanks.

          Mircea PuiuM Offline
          Mircea PuiuM Offline
          Mircea Puiu
          wrote on last edited by
          #4

          Hi, use the intel jpeg library (ijl15.dll) SkyWalker

          1 Reply Last reply
          0
          • K kd8341

            I am using visual studio .net and want to save a BMP file to JPG format. How to do this? Is there a sample code for reference? Thanks.

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

            MFC/Windows does not have this capability built-in. you'll need to use a library like GDI+, CIXImage (available here on CP), ImgSource (my favorite :) ), or any of the other dozens of libraries out there. Image Toolkits | Image Processing | Cleek

            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