Solved

how do you convert a bitmap into dib so that you can display it in a console

Posted on 1999-01-25
2
223 Views
Last Modified: 2013-11-20
i wana display a bitmap on the whole screen, how do i do it.
you know, i wana display it on the console mode.  how do you do this using mfc, i have visual c++ 4.0. please explaing this in the easiest way possible.
0
Comment
Question by:ashr
2 Comments
 
LVL 1

Accepted Solution

by:
dd_b earned 200 total points
ID: 1328278

Create one memory dc:

CDC * pDC =  new CDC;

following  function will create memorydc
virtual BOOL screendc::CreateCompatibleDC(  pDC );
by default it contains b/w bitmap. to remove that select your bitmap in the memorydc using selectobject function call.
see MFC help on CreateCompatibleDC(  pDC )
then call screendc.BitBlt( .., memorydc,.. );


0
 

Author Comment

by:ashr
ID: 1328279
can you please explain in more detail what to do after creating a pointer to CDC.
can you give an example by using a bitmap name called"test.bmp".
in your example can you show how to display this bitmap in a console, or on the whole moniter or screen.
please respond asap.
please give the whole example, so i could understand, not just a portion of it.
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Turn a spreadsheet into a vba executable. 2 86
Tab names are off by one 5 54
move a line in eclipse 3 102
Modbus - whats the maximum I can store in one register? 4 79
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question