>I would like to be able to save a Bitmap to a graphic file, such as a JPG,
>BMP, etc. Are there any 3rd party sources that provide a means to put this
>functionality into my VS C++ 2008 application in /CLI mamaged mode? I'd
>prefer not to write the conversions.
There's lots of 3rd party libraries available.
Built in to Windows, there's GDI+.
http://msdn2.microsoft.com/en-us/library/ms533798.aspx
The .NET System.Drawing namespace has classes which wrap the GDI+ classes.
http://msdn2.microsoft.com/en-us/library/system.drawing.aspx
> Also, is there a place I can find the BMP and JPG file format standards?
For JPEG, Google "JPEG file format" and/or "JPEG JFIF"
A typical (packed) BMP file is a BITMAPFILEHEADER struct followed by a
BITMAPINFO struct followed by the color table (if appropriate) followed by
the pixel data. http://msdn2.microsoft.com/en-us/library/ms532311.aspx
Mark

Signature
Mark Salsbery
Microsoft MVP - Visual C++
Peter Anthony - 14 Nov 2007 20:31 GMT
Thanx Mark!
I also discovered that Wikipedia also details image file formats! Pretty
cool! :)
>>I would like to be able to save a Bitmap to a graphic file, such as a JPG,
>>BMP, etc. Are there any 3rd party sources that provide a means to put this
[quoted text clipped - 18 lines]
>
> Mark
If you're willing to call out to unmanaged code, here are two ways.
CxImage
http://www.xdp.it/download.htm
http://www.codeproject.com/bitmap/cximage.asp
CImage
http://msdn2.microsoft.com/en-us/library/bwea7by5(VS.80).aspx
>I would like to be able to save a Bitmap to a graphic file, such as a JPG,
>BMP, etc. Are there any 3rd party sources that provide a means to put this
>functionality into my VS C++ 2008 application in /CLI mamaged mode? I'd
>prefer not to write the conversions.
>
> Also, is there a place I can find the BMP and JPG file format standards?