Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / November 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter Anthony - 14 Nov 2007 16:53 GMT
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?
Mark Salsbery [MVP] - 14 Nov 2007 19:48 GMT
>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
Norman Diamond - 15 Nov 2007 01:03 GMT
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?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.