GRAPHICS
TheStarLaserPrinter8offerstwokindsofgraphics.Itprin~srastergraphics
(sometimescalled “bit-mappedgraphics”),which specify each dot in a
graphicspattern. And it printspattern 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>*tn R
For the valueof n youcan entereither75, 100,150or 300.That number
defineshowmanydotspcrinchyouwantin yourfinalgraphicimage.The
defaultresolutionis75dotspcrinch.Aftergraphicshavestarted,theprinter
willignoreanyresolutioncommanduntilit receivesthe commandto end
graphics.
Rastergraphicsstartprintingeitherattheleftpageedgeorthecurrentprim
position.To startrastergraphicsyousendthiscommand:
<ESC>Wn A
YoucanputineitherO(zero)or 1(one)forthen 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 currentprintposition,and your
imagewillappearonlyto therightof thatgraphicsmargin.
Aprogramminghint:moveyourprintpositionindotincrementswhenever
you’redealingwith graphics.It’s easierthan tryingto calculatecolumn-
widthsor dccipoints.
89