473,396 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

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?
Nov 14 '07 #1
3 1120
"Peter Anthony" <po*******@roundtripllc.comwrote in message
news:u$****************@TK2MSFTNGP05.phx.gbl...
>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/lib...m.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

--
Mark Salsbery
Microsoft MVP - Visual C++
>
Nov 14 '07 #2
Thanx Mark!

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

"Mark Salsbery [MVP]" <MarkSalsbery[MVP]@newsgroup.nospamwrote in message
news:6E**********************************@microsof t.com...
"Peter Anthony" <po*******@roundtripllc.comwrote in message
news:u$****************@TK2MSFTNGP05.phx.gbl...
>>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/lib...m.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

--
Mark Salsbery
Microsoft MVP - Visual C++
>>

Nov 14 '07 #3
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/lib...y5(VS.80).aspx
"Peter Anthony" <po*******@roundtripllc.comwrote in message
news:u$****************@TK2MSFTNGP05.phx.gbl...
>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?
Nov 15 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Mark Johnson | last post by:
How can you save all or a portion of the Grafics object to a Image/Bitmap ? I am try to save the Images from Cards.dll to a BitMap file. I can read in the Images to the Grafics, but when I try this...
2
by: TC | last post by:
I would like to save bitmaps to a file stream, but I can't get the Bitmap.Save(Stream) overload to work. If I save one bitmap to the stream, it works okay, but if I save two or more, they all...
13
by: Stacey Levine | last post by:
Ok.. Maybe I am trying the wrong approach. If given a URL to a graphic, I want to save that graphic to a local file. The approach below gets the response, but I can't quite figure out how to save...
1
by: hamil | last post by:
I am trying to print a graphic file (tif) and also use the PrintPreview control, the PageSetup control, and the Print dialog control. The code attached is a concatination of two examples taken out...
2
by: Mike | last post by:
Hello everybody. I am drawing a country map that consists of 149 municipality bitmaps, each around 25 Kb. I draw it onto the in-memory bitmap, then draw it on the picture box. I use C++, but...
1
by: Luis Arvayo | last post by:
Hi, I hope this is the correct place for this post. What is your favourite graphic tool for building the glyphs/images/icons on toolbars ?. Photoshop, PaintShop Pro, or ?. I mean 16x16 or...
1
by: bdtmike | last post by:
This is a newbie question: I've got VS2005 installed on my PC. This is the premier development environment for the latest & greatest application. Dumb Question: How come it comes with no...
2
by: Marcus | last post by:
Good evening, I'm new to developing large subversion-controlled projects. This one will involve a few third-party libraries like wxWidgets, and perhaps Twisted. Ordinarily you could just install...
0
by: TC | last post by:
Hi all. I have a project at the moment that requires the production of Datamatrix bar codes, saved as graphics. I'm saving a Metafile as this is a vector type file should map better to the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.