Re: printing in win

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu