Oki 80 Series warranty Programming Bit Image Graphics

Page 52

Programming Bit Image Graphics

You can also write a program that prints a graphics image directly, without transferring it from the display screen. This section explains how to do this using BASIC statements.

Your printer prints graphics images in successive columns of eight dots. The LPRINT statement that tells the printer to do this has three components:

The control code sequence that puts the printer into graphics mode,

The number of columns to be printed, and

The coded data that tells the printer which dots to print in each column.

First, we discuss each part separately, then put them together.

There are four modes of bit image graphics available with the IBM- compatible MICROLINE. They differ in horizontal resolution, or density. This indicates how close together the dots are; it is measured by the number of dots per inch. All modes have a vertical resolution of 72 DPI. For reference, the diameter of a dot is 1/72 inch. The modes are discussed in more detail in the next section on control codes.

The maximum width of a graphics image is 8 inches for the printer.

1. Control Codes

A graphics LPRINT statement begins with a control code that tells the printer to print a graphics image. Each graphics mode has a different control code.

3 – 22 Programming

Image 52
Contents Page Contents Special Note Green and Yellow Earth Blue Neutral Brown Live Setting Up Your Printer Carriage shipping restraint Setting Up 1 Setting Up Paper guides Important The printer must be earthed at all times Line feed Select button Select indicator Setting Up Connecting to your computer Connecting a Parallel InterfaceLprint this is Line ONE Lprint and this is Line TWO Setting Up 1 Setting the internal DIP switches Language Switch Number Length Inches Changing the DIP-switch settings Optional Accessories Setting Up Buttons, levers and indicators Operating Your PrinterOperating Your Printer Release and then press the TOF SET button to Operating Your Printer Adjustment Paper LockRelease Lever Paper GAPPaper loading Rear Feed Paper LoadingBottom Feed Paper Loading Operating Your Printer Loading single sheets OperationLine mark Cut sheet guide Programming Programming Basic Programming Lprint WHO YOU Gonna CALL?Lprint CHR$49 LprintLprint Hello Lprint CHR$14 Hello Lprinthello 20LPRINTCHR$14HELLOCHR$20HELLOAGAIN If you have a Software Package Programming Programming the printer Carriage return and line feedHorizontal Tabbing Horizontal TabulationLprint TAB Lprint CHR$9TAB Again Line Spacing Fine Line Spacing Length Setting TopSkip Over Perforation Form FeedChanging Character Size Size Command Maximum Characters per line Underlining Superscript and Subscript This is back to normal Enhanced and Emphasized Printing Lprint CHR$27CHR$69EMPHASIZED Lprint CHR$27CHR$71ENHANCED ENHANCED/EMPHASIZED Character Sets Cut Sheet FeederBit Image Graphics Screen DumpsProgramming Bit Image Graphics ESC K Number of Columns Example ESC KMaximum Graphics Columns Per Line Graphics DataColumn Position Values Putting it Together Programming 3 Programming REM Sample Ndots = 256 ‘MAXIMUM Possible CombinationsCombining Text and Graphics NdotsLprint Text Printing CHR$27CHR$75 Printing Multiline Graphics Next JREM Maximum Possible Combinations Reminders HintsCancel Function For I = 1 to Ndots Read C Lprint CHR$C NextLine Feed Near Letter Quality ModePaper Out Utility Mode HSD ModeProgramming Commands Form Feed Print Mode Character Sets Standard Code Table selected by ESCBlock Graphics 8-Bit Code Table selected by ESC Specifications Electrical Requirements Hexadecimal Conversion Table B C D E F