how to convert a bitmap image to a jpg image file using C++?

This is a discussion on how to convert a bitmap image to a jpg image file using C++? within the Windows Programming forums, part of the Platform Specific Boards category; Don't know if I need to do this in 2 steps: 1. convert bmp image to ipg image 2. create ...

  1. #1
    Registered User
    Join Date
    Mar 2006
    Posts
    16

    how to convert a bitmap image to a jpg image file using C++?

    Don't know if I need to do this in 2 steps:
    1. convert bmp image to ipg image
    2. create any jpg file header and save it to a file?

    Any sample file?

    Thank you in advance!

  2. #2
    Registered User Joelito's Avatar
    Join Date
    Mar 2005
    Location
    Tijuana, BC, México
    Posts
    308
    Gdiplus?
    * PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with xfce4.
    * Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with xfce4.

  3. #3
    Registered User
    Join Date
    Mar 2006
    Posts
    16
    Thanks for the pointer!

    However I searched GDI+ but can't see how to convert the image format, any sample code or could you refer to some class/function names?

    Thanks!

  4. #4
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    Posts
    638
    http://msdn.microsoft.com/library/de...oapngimage.asp
    the example is png just change that to .jpg

  5. #5
    Registered User
    Join Date
    Mar 2006
    Posts
    16
    The sample code looks good, I will try it out. Thanks for the help!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 05-27-2009, 01:46 PM
  2. Need help with Bitmap Display
    By The Brain in forum Windows Programming
    Replies: 7
    Last Post: 03-23-2009, 06:33 AM
  3. opening empty file causes access violation
    By trevordunstan in forum C Programming
    Replies: 10
    Last Post: 10-22-2008, 12:19 AM
  4. Encryption program
    By zeiffelz in forum C Programming
    Replies: 1
    Last Post: 06-15-2005, 04:39 AM
  5. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 10:54 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21