Laser Printer Applications Manual

GRAPHICS
TheStarLaserPrinter8offerstwokindsofgraphics.Itprin~srastergraphics
(sometimescalled “bit-mappedgraphics”),which specify each dot in a
graphicspattern. And it prints pattern graphics,which prints Iincs and
pattcmcdblocks.
Bc aware,though,that addinggraphicelementsalwaysslowsup printing
withlaserprinters.
Starting raster graphics
Youfollowthesefourstepswhenyouuserastergraphics,intheordershown:
1)
Definewhatresolutionyouneed.
2) Issuethe commandto startgraphics.
3) Sendthecommandsto transferrastergraphics.
4)
Sendthecommandto endgraphics.
‘Youmustdefinethe resolutionof yourrastergraphicsbeforeyouusethe
StartRasterGraphicscommand.To definetheresolutionyouneedin your
graphics,sendthiscommand:
<ESC>*t n R
For the valueof n you can entereither75, 100,150or 300.That number
defineshowmanydotspcrinchyouwantinyourfinalgraphicimage.The
defaultresolutionis75dotspcrinch.Aftergraphicshavestarted,theprinter
willignoreany resolutioncommanduntilit receivesthecommandto end
graphics.
Rastergraphicsstartprintingeitherattheleftpageedgeor thecurrentprim
position.To startrastergraphicsyousendthiscommand:
<ESC>Wn A
Youcanput in eitherO(zero)or 1(one)forthe n value.If youenterO,the
marginforgraphicswillbcsetattheleftmostpnntablcedgeofthepage(not
the same as the left margin for text). But if you enter 1, the margin for
graphicswill be set at the columnof the currentprint position,and your
imagewill appearonlyto the rightof thatgraphicsmargin.
A programminghint:moveyourprintpositionin dotincrementswhenever
you’redealingwith graphics.It’s easierthan tryingto calculatecolumn-
widthsor dccipoints.
89