Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > Graphics APIs > Re: printing th...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 13 of 16 Topic 20 of 99
Post > Topic >>

Re: printing the mirror image.

by "Tim Robinson" <tim.at.gaat.freeserve.co.uk@[EMAIL PROTECTED] > Oct 29, 2003 at 10:53 PM

<r_z_aret@[EMAIL PROTECTED]
> wrote in message
news:3fa01746.19333329@[EMAIL PROTECTED]
> I may be missing something. StrechBlt copies from DC to DC, so I
> assume it will work with any sort of DC, including a printer DC. Thus,
> I figured you could do something like:
> a) "draw" on a hidden DC instead of the actual printer DC, then use
> StrecthBlt to copy and rotate everything to the actual printer DC
> or
> b) "draw" on the original printer DC, but copy to and from a
> tem****ary, hidden DC, so you can rotate once.

I don't believe this, or any solution involving blitting, will work, and I
think Feng Yuan (who is more qualified than me on GDI) agrees.

Consider the amount of data involved if you treat a page of A4 as a bitmap
when targetting a 300dpi printer -- far more than one screen's worth.
Trying
to use StretchBlt on this would involve creating a memory DC the size of
the
page, bringing the whole page (that the application printed) into memory,
and copying from one to the other. Then copying the whole lot back to the
printer. Printer drivers avoid dealing with all this data at once by
banding
their output; that is, dividing it into strips and processing each strip
at
once. The solutions in this thread have tried to deal with everything at
once which, even on current PCs, is a heck of a lot.

In my opinion, the best ways of dealing with this are:
1. Inserting a transform into the printer DC before the application sends
any data
2. Hooking into the printer driver somehow to reverse all the coordinates
3. Printing onto transparent acetate and turning it round, then
photocopying
that onto a sheet of paper

-- 
Tim Robinson (MVP, Windows SDK)
http://www.themobius.co.uk/
 




 16 Posts in Topic:
printing the mirror image.
mperona@[EMAIL PROTECTED]  2003-10-21 20:30:03 
Re: printing the mirror image.
"philo" <NON  2003-10-22 05:13:15 
Re: printing the mirror image.
mperona@[EMAIL PROTECTED]  2003-10-22 15:33:29 
Re: printing the mirror image.
"Feng Yuan [MSFT]&qu  2003-10-23 06:38:11 
Re: printing the mirror image.
mperona@[EMAIL PROTECTED]  2003-10-23 13:49:11 
Re: printing the mirror image.
r_z_aret@[EMAIL PROTECTED  2003-10-30 19:57:48 
Re: printing the mirror image.
Lucian Wischik <lu.nn@  2003-10-30 22:21:17 
Re: printing the mirror image.
r_z_aret@[EMAIL PROTECTED  2003-10-31 17:09:40 
Re: printing the mirror image.
r_z_aret@[EMAIL PROTECTED  2003-10-23 17:27:05 
Re: printing the mirror image.
mperona@[EMAIL PROTECTED]  2003-10-27 12:04:19 
Re: printing the mirror image.
mperona@[EMAIL PROTECTED]  2003-10-29 10:00:27 
Re: printing the mirror image.
r_z_aret@[EMAIL PROTECTED  2003-10-29 20:46:17 
Re: printing the mirror image.
"Tim Robinson"   2003-10-29 22:53:50 
Re: printing the mirror image.
r_z_aret@[EMAIL PROTECTED  2003-10-30 19:57:51 
Re: printing the mirror image.
mperona@[EMAIL PROTECTED]  2003-10-30 13:47:04 
Re: printing the mirror image.
"Tim Robinson"   2003-10-30 22:17:07 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Nov 20 9:47:14 CST 2008.