www.xbdev.net xbdev - software development
Friday December 14, 2018
home | about | contact | Donations

     
 

Win32..

Using our Windows API's...

 

Tutorial 3: Win32 - Stop printing..stop stop!

by bkenwright@xbdev.net

 

Graphics and the Printer working Together :)

 

Now its great to be able to click that print button and have your work printed out exactly as it is on the screen...with little or no worry of how it works.  But working with the printer is almost exactly the same as working with the screen...but the HDC is for a printer....so we use the same API's...but the HDC is a printer one :)  Cool eh?

 

HDC hdc = GetPrinterDC();

... Use printer DC...

DeleteDC(hdc);

Knowing how to get this printer DC is the first part....the next part is using it so that the image on the screen looks the same as on our paper.  Which means gathering information, things like paper size...aspect ratio etc.  Of course there's nothing stopping us just making guesses and sending it to the printer... but we want to be good don't we?

 

 

{Under Construction}

 
 Visitor: 9534626  { 209.237.238.175 } Copyright (c) 2002-2017 xbdev.net - All rights reserved.
Designated tutorial and software are the property of their respective owners.