mercredi 4 mars 2015

Draw PBM image on MFC dialog based application


I want to draw a portable bitmap image (PBM) on a Dialog (It is a dialog-based MFC application). I have two questions:


1) How to load pbm into the system? I think there should be many library can help me do this task. At the beginning, i used Freeimage library, but i am short of sample code for the loading and i was total lost..


2) The second is the way to draw the loaded image on a dialog. It seems that i should draw image on the CSampleDLG:onPain() method.


Could anyone provide some sample code and which library is more easy for I (The last time i used Microsoft OS was 10 years ago). Thanks




Aucun commentaire:

Enregistrer un commentaire