Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 1999-01-25
2
Medium Priority
?
231 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 400 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Suggested Courses
Course of the Month11 days, 20 hours left to enroll

916 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