Article View: comp.windows.interviews
Article #426PostScript and big images
From: Joerg Ringel
Date: Sat, 12 Sep 1992 11:37
Date: Sat, 12 Sep 1992 11:37
54 lines
1849 bytes
1849 bytes
Hello,
I create a big Glyph, which I can see with something like
the Scrollable, in my program.
Now I want to create a PostScript file of it.
My problem is, that I don't want to print all 1:1
of the image (Glyph's) with the printer.
I've set the Allocation to the bounds of my viewer.
I think all the information to print are in the file, but
he prints only on one page.
What can I do to tell him, that he has to print more pages?
Do you have an idea??
Thank's for your help in advance,
Joerg
(ringel@forwiss.uni-passau.de)
void DebugWindow::post_script() {
char buffer[256];
Allocation a;
Allotment allotment_x(viewer->lower(Dimension_X),
viewer->length(Dimension_X),
0.0
);
Allotment allotment_y(viewer->upper(Dimension_Y),
viewer->length(Dimension_Y),
0.0
);
strcpy(buffer, rap->name_of_task);
strcat(buffer, ".ps");
ofstream out(buffer);
Printer* ps = new Printer(&out);
a.allot_x(allotment_x);
a.allot_y(allotment_y);
strcpy(buffer, "RAP ");
strcat(buffer, rap->name_of_task);
ps->prolog(buffer);
ps->resize(a.left(), a.bottom(), a.right(), a.top());
viewer->print(ps, a);
ps->epilog();
delete ps;
}
Technical Details
Message-ID:
<1992Sep12.113737.1826@tom.rz.uni-passau.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!informatik.tu-muenchen.de!rz.uni-passau.de!forwiss.uni-passau.de!ringelShow Full Headers
Complete Article Headers
Newsgroups: comp.windows.interviews Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!informatik.tu-muenchen.de!rz.uni-passau.de!forwiss.uni-passau.de!ringel From: ringel@forwiss.uni-passau.de (Joerg Ringel) Subject: PostScript and big images Message-ID: <1992Sep12.113737.1826@tom.rz.uni-passau.de> Sender: news@tom.rz.uni-passau.de (News-Operator) Nntp-Posting-Host: eldron.forwiss.uni-passau.de Organization: University of Passau, Germany Date: Sat, 12 Sep 1992 11:37:37 GMT Lines: 54