Solved

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

Posted on 1999-01-25
2
225 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ORA-01403: no data found 43 111
List out all word 7 332
ASP.NET C# MessageBox.Show Showing a modal dialog box or form when the application ... 2 184
Change to event 1 126
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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…
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.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

713 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