Tech Support > Microsoft Windows > Development Resources > How to make IJG jpeg to HBITMAP
How to make IJG jpeg to HBITMAP
Posted by DC on April 3rd, 2007


I am testing JPEG library from Independent JPEG Group.

It compiles and I can run the jpegtran.c sample.

I need to read & display the JPEG's to a windows window (win32). How do I convert
the the JPG to HBITMAP?

If anyone has a simple source I could learn from I'd be thankful.

Posted by Bertel Brander on April 3rd, 2007


DC skrev:
It's not that simple, but have a look at JDraw:
http://damb.dk/graphics.php

--
Just another homepage:
http://damb.dk
But it's mine - Bertel

Posted by michel on April 3rd, 2007


DC wrote:
This lib is useless as everything is included in Windows to manage jpeg.

Posted by news@rtrussell.co.uk on April 3rd, 2007


On Apr 3, 8:19 pm, DC <d...@glebnomail.com> wrote:
OleLoadPicturePath then IPicture::get_Handle will do it.

Richard.
http://www.rtrussell.co.uk/
To reply by email change 'news' to my forename.


Posted by DC on April 4th, 2007


michel <michel@renas.com> wrote:

Can you show a simple example. OleLoadPicture (according to msdn: "The stream
must be in BMP (bitmap), WMF (metafile), or ICO (icon) format. ")

Posted by news@rtrussell.co.uk on April 4th, 2007


On Apr 4, 7:54 am, DC <d...@glebnomail.com> wrote:
OleLoadPicturePath can load JPEG and GIF images as well:

http://msdn2.microsoft.com/en-us/library/ms678485.aspx

It says "The stream must be in BMP (bitmap), JPEG, WMF (metafile), ICO
(icon), or GIF format".

Richard.
http://www.rtrussell.co.uk/
To reply by email change 'news' to my forename.


Posted by DC on April 4th, 2007


"news@rtrussell.co.uk" <news@rtrussell.co.uk> wrote:

Thanks. Got it working now.


Similar Posts