[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] zView print



---------------------------------------------------
> On Thu, Jan 7, 2016 at 10:33 AM, Helmut Karlowski <helmut.karlowski@ish.de>
> wrote:
> 
> > Why don't you open a printer-device with v_opnwk and redraw the image
> > using that workstation? MiNT would not be involved.
> >
> 
> Because I barely know what a workstation is ;) You can take a look by
> yourself:

Not much mystery:

work_in[0] = driver;	// see assign.sys
v_opnwk(...&phandle,...);
work_in[0] = phandle;
v_opnvwk(...,&vhandle,...);

...

redraw();
v_clsvwk(vhandle);
v_clswk(phandle);
vhandle = vhsav;
phandle = phsav;

Problems might arise from fonts and bitmaps, but you'd have to deal 
with this anyway I guess.

> http://sourceforge.net/p/z-tools/code/HEAD/tree/trunk/zview/winpdf.c#l1347

Thanks :)

> ... it's really just bunch of drawing functions.

... which basically only  need a new virtual handle and coords etc.

-Helmut