Is there and easy way to read .jpg and/or .bmp files in native C++?

  • Thread starter Thread starter Frank
  • Start date Start date
F

Frank

Is there and easy way to read .bmp files in native C++?

How about .jpg files?



Thanks in advance
 
Hi Frank!
Is there and easy way to read .bmp files in native C++?

How about .jpg files?

Or are you looking for something like
- LoadImage (at least for BMP)
- OleLoadPicture / OleCreatePictureIndirect
- GDI+: Bitmap::FromFile
?

See also several examples on codeproject...

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
 
How would I display that?

Oh, that is a different question. You should have asked that the
first time!

What do mean by "native C++". Do you mean you have to write you own
code pixel by pixel? You can't display anything on a screen in
"native C++" without using somebodies library routines and there are
numerous jpg and bmp display libraries available that you can call
from native C++. Have you tried google?
 
r norman said:
Oh, that is a different question. You should have asked that the
first time!

What do mean by "native C++". Do you mean you have to write you own
code pixel by pixel? You can't display anything on a screen in
"native C++" without using somebodies library routines and there are
numerous jpg and bmp display libraries available that you can call
from native C++.

Thanks, that's what I needed. Nothing in VS2005.

Have you tried google?

I'm such a novice I think I could easily spend much time trying things.
 
Thanks, I'll look there

Jochen Kalmbach said:
Hi Frank!

Or are you looking for something like
- LoadImage (at least for BMP)
- OleLoadPicture / OleCreatePictureIndirect
- GDI+: Bitmap::FromFile
?

See also several examples on codeproject...

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
 
Nathan Mates said:
Read/write? Try http://openil.sourceforge.net . Displaying is
another matter, because C/C++ doesn't have graphics as part of the
language. You'll need to find a different library that does that.


I thought once I had the files data into a BITMAP I could SelectBitmap it
into a device context and the BitBlt it to whatever.

No?
 

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

Back
Top