Re: printing in win
- Posted by David Cuny <dcuny at LANSET.COM> Jul 06, 1999
- 491 views
Jesse Kint wrote: > i need some help does any one have a library/ solution > on how to print in win32. Another thing on my to-do list. And it looks like I'll have to look into postscript if I want to support it on the Linux platform. Bleah. > i'm writing a program in win32lib that uses > a zoom controll to zoom in on a picture/drawing > i want to use scroll controlls to move around on the > zoom drawing how would i use them to do this? You should probably draw into an off-screen pixmap, and then bitblt the image into the window. Changing the xSrc and ySrc values in bitblt make scrolling trivial. For zooming, I'd suggest using the Win32 routine StretchBlt. I haven't written a wrapper for it yet, but you can probably write it yourself with only minor modifications to the BitBlt wrapper. -- David Cuny