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

Re: [MiNT] zView print



On Thu, 7 Jan 2016 14:41:38 , Helmut Karlowski <helmut.karlowski@ish.de> wrote:
> ---------------------------------------------------
> > 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

Presumably the pages have to be rendered at printer resolution,
much higher than screen resolution. That might take up a lot of
memory unless the pages are rendered in sections/lines.

Regards,

Peter