Solved

Loading and printing bitmaps in Dialog Application

Posted on 1998-10-23
1
239 Views
Last Modified: 2013-11-20
How can i succesfully load (without drawing the bmp to the dialog box)and print bitmap in a dialog box application?
0
Comment
Question by:jopoy
1 Comment
 

Accepted Solution

by:
Maizlish earned 120 total points
ID: 1323747
Here is a sequence :
1.Create compatible memory device ( for dialog box or printer ) - see CreateCompatibleDevice documentation

2.Read the BMP file

3.Create compatible bitmap ( CreateCompatibleBitmap ) and initialize it with the data read from the file

4.Select the bitmap into the device you have created in the step 1 - see SelectObject

Now you have bitmap selected in the invisible device context - and you are free to do anything with it - even sending to printer .

Hope it helps ,
Oleg

0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Macro to save highlighted rows as a separate file 5 43
Replacement selected text 2 61
either24  challenge 19 97
Way to decrease size of apk file 9 66
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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 Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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.

776 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