-
July 3rd, 2014, 02:33 PM
#1
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.
-
July 3rd, 2014, 02:36 PM
#2
Re: How to read images in GDI or GDI+
Have a look at CImage Class
Victor Nijegorodov
-
July 3rd, 2014, 03:17 PM
#3
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.
-
July 3rd, 2014, 03:36 PM
#4
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?
Victor Nijegorodov
-
July 3rd, 2014, 04:23 PM
#5
Re: How to read images in GDI or GDI+
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.
All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!
C++23 Compiler: Microsoft VS2022 (17.6.5)
-
July 3rd, 2014, 05:15 PM
#6
Re: How to read images in GDI or GDI+
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.
-
July 3rd, 2014, 06:10 PM
#7
Re: How to read images in GDI or GDI+
-
July 4th, 2014, 09:29 AM
#8
Re: How to read images in GDI or GDI+
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.
-
July 4th, 2014, 10:08 PM
#9
Re: How to read images in GDI or GDI+
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
Best regards,
Igor
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|