Click here to Skip to main content
15,940,430 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Displaying Image from stream Pin
Sachin k Rajput 24-Feb-13 21:53
Sachin k Rajput 24-Feb-13 21:53 
GeneralRe: Displaying Image from stream Pin
SoMad24-Feb-13 22:09
professionalSoMad24-Feb-13 22:09 
Good, I figured it was something like this - there are so many classes and tools that need to load the images from file in order to display them, but you have to search hard to find some that will let you load an image already in memory.

Take a look at this article: Simple class for drawing pictures (JPG, TIFF, GIF, etc...)[^]
Examine the code to figure out what is wrong with your code or just use the class in your project. I know it is old and there might be newer stuff out there, but I have used the class to perform similar tasks. I have a project where I am using a button class derived from this class and it makes it possible to display just about any image on the buttons.
It has been so long since I looked at the code, that I did not remember it uses a similar approach as you did with the IStream object, so I am sorry I brought that into question.

Soren Madsen
"When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty

GeneralRe: Displaying Image from stream Pin
Richard MacCutchan25-Feb-13 0:20
mveRichard MacCutchan25-Feb-13 0:20 
GeneralRe: Displaying Image from stream Pin
SoMad25-Feb-13 0:48
professionalSoMad25-Feb-13 0:48 
GeneralRe: Displaying Image from stream Pin
Richard MacCutchan25-Feb-13 0:55
mveRichard MacCutchan25-Feb-13 0:55 
AnswerRe: Displaying Image from stream - [REPOST] Pin
Richard MacCutchan25-Feb-13 0:51
mveRichard MacCutchan25-Feb-13 0:51 
GeneralRe: Displaying Image from stream - [REPOST] Pin
Sachin k Rajput 25-Feb-13 1:49
Sachin k Rajput 25-Feb-13 1:49 
GeneralRe: Displaying Image from stream - [REPOST] Pin
Richard MacCutchan25-Feb-13 3:04
mveRichard MacCutchan25-Feb-13 3:04 
QuestionConnect directshow filters Pin
11moshiko1124-Feb-13 4:41
11moshiko1124-Feb-13 4:41 
QuestionBuild for 64bit Pin
john563221-Feb-13 23:13
john563221-Feb-13 23:13 
AnswerRe: Build for 64bit Pin
Richard MacCutchan21-Feb-13 23:55
mveRichard MacCutchan21-Feb-13 23:55 
AnswerRe: Build for 64bit Pin
«_Superman_»23-Feb-13 15:51
professional«_Superman_»23-Feb-13 15:51 
GeneralRe: Build for 64bit Pin
john563224-Feb-13 20:28
john563224-Feb-13 20:28 
QuestionButon Control Text Display problem in MFC Pin
Lakshman c b21-Feb-13 17:04
Lakshman c b21-Feb-13 17:04 
AnswerRe: Buton Control Text Display problem in MFC Pin
yu-jian23-Feb-13 3:30
yu-jian23-Feb-13 3:30 
GeneralRe: Buton Control Text Display problem in MFC Pin
Lakshman c b24-Feb-13 18:34
Lakshman c b24-Feb-13 18:34 
GeneralRe: Buton Control Text Display problem in MFC Pin
yu-jian24-Feb-13 21:31
yu-jian24-Feb-13 21:31 
GeneralRe: Buton Control Text Display problem in MFC Pin
SoMad24-Feb-13 19:07
professionalSoMad24-Feb-13 19:07 
Questionsystem() in MFC Pin
RomTibi21-Feb-13 9:51
RomTibi21-Feb-13 9:51 
AnswerRe: system() in MFC Pin
Garth J Lancaster21-Feb-13 10:16
professionalGarth J Lancaster21-Feb-13 10:16 
GeneralRe: system() in MFC Pin
Stephen Hewitt21-Feb-13 14:55
Stephen Hewitt21-Feb-13 14:55 
GeneralRe: system() in MFC Pin
Garth J Lancaster21-Feb-13 15:03
professionalGarth J Lancaster21-Feb-13 15:03 
AnswerRe: system() in MFC Pin
Rajesh R Subramanian21-Feb-13 19:17
professionalRajesh R Subramanian21-Feb-13 19:17 
AnswerRe: system() in MFC Pin
Richard MacCutchan21-Feb-13 22:30
mveRichard MacCutchan21-Feb-13 22:30 
GeneralRe: system() in MFC Pin
Albert Holguin24-Feb-13 7:38
professionalAlbert Holguin24-Feb-13 7:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.