Solved

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

Posted on 1999-01-25
2
220 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
Comment Utility

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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
mixString challenge 36 98
List out all word 7 220
Problem to event 3 49
Making an alias 7 51
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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 demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now