Any 3RD Party sources to save Bitmaps to graphic files?

P

Peter Anthony

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?
 
M

Mark Salsbery [MVP]

Peter Anthony said:
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
[/QUOTE]
 
P

Peter Anthony

Thanx Mark!

I also discovered that Wikipedia also details image file formats! Pretty
cool! :)

Mark Salsbery said:
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


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
[/QUOTE]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top