How to read images in GDI or GDI+
I am working on application to work with images. I need advise how to open/read images, whether it is jpeg, png, bmp or tiff and get it to bitmap. Is there some universal command for this or I will need more commands, every time testing the extension or format and then to use different method to read the image? Best would be to do it automatically, but I don't know such command.
Re: How to read images in GDI or GDI+
Have a look at CImage Class
Re: How to read images in GDI or GDI+
Will it work for Visual Studio Express 2010? It is in the list of classed which are shared on MFC and ATL.
Re: How to read images in GDI or GDI+
I don't have any VS Express... nor did I use this class.
Why don't you want to test it with your VS?
Re: How to read images in GDI or GDI+
Quote:
Originally Posted by
crazy boy
Will it work for Visual Studio Express 2010? It is in the list of classed which are shared on MFC and ATL.
No. The Express versions of Visual Studio don't have/support the MFC/ATL classes. If you want to use MFC/ATL classes you need one of the full paid-for versions of Visual Studio.
Re: How to read images in GDI or GDI+
Quote:
Originally Posted by
VictorN
I don't have any VS Express... nor did I use this class.
Why don't you want to test it with your VS?
Because I dont use payed version of VS.
Re: How to read images in GDI or GDI+
Re: How to read images in GDI or GDI+
Quote:
Originally Posted by
crazy boy
If you are looking for non MFC/ATL responses, a better forum to post in would be the C++ WinAPI forum.
Re: How to read images in GDI or GDI+
Quote:
Originally Posted by
crazy boy
I am working on application to work with images. I need advise how to open/read images, whether it is jpeg, png, bmp or tiff and get it to bitmap. Is there some universal command for this or I will need more commands, every time testing the extension or format and then to use different method to read the image? Best would be to do it automatically, but I don't know such command.
Bitmap::FromFile