469,581 Members | 1,978 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,581 developers. It's quick & easy.

Loading PNG\JPG Images in MFC without using GDI\GDI+


Hello All,

I have a MFC Dialog based application. I am not using GDI or GDI+
libraries. I need to load PNG and JPEG images in this Dialog Based
application. Can you suggest me how to to do without using GDI\GDI+?

Thanks in advance,
Reji

--
rejidasan
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Apr 3 '07 #1
2 12320

"rejidasan" <re**************@mail.codecomments.comwrote in message
news:re**************@mail.codecomments.com...
>
Hello All,

I have a MFC Dialog based application. I am not using GDI or GDI+
It is not possible to have an MFC application without the GDI library.
libraries. I need to load PNG and JPEG images in this Dialog Based
application. Can you suggest me how to to do without using GDI\GDI+?
What are you trying to do with the image? Display it? Process it? Write
it back out?

What should the image look like after it is loaded? An HBITMAP? An array
of color table indexes? An array of RGB colors? With or without alpha
support?
Apr 3 '07 #2
There are many solutions availabe:

1) Microsoft's CImage class. Easy to use eventhough it uses GDI and GDI+.
2) Microsoft's Windows Imaging Component. WindowsXP, Windows2003 Server,
VISTA only.
3) Microsoft's IPicture com interface. Jpeg, gif, bmp, metafiles, icons but
no png.
4) Third party free libraries(e.g., Libpng, jpeg-6b, etc).
"rejidasan" <re**************@mail.codecomments.comwrote in message
news:re**************@mail.codecomments.com...
>
Hello All,

I have a MFC Dialog based application. I am not using GDI or GDI+
libraries. I need to load PNG and JPEG images in this Dialog Based
application. Can you suggest me how to to do without using GDI\GDI+?

Thanks in advance,
Reji

--
rejidasan
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Apr 3 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by pradnyapatil29 | last post: by
10 posts views Thread by eholz1 | last post: by
8 posts views Thread by dougawells | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.