Oki X400 X400 Programming Command Manual - Page 78

Expanded Memory Function, Graphics, PCX Store

Page 78 highlights

Expanded Memory Function Graphics, PCX Store Command Structure PIaaa,bbbbb,{data} aaa = Storage area number. bbbbb = Size of PCX file in bytes. {data} = Data. Example: PI001,32000,{data} Placement: This command must be placed within its own data stream. Default: None. Command Function To store for later printing a PCX graphic file in Expanded Memory. Input to Printer BASIC Program to Download a PCX file to Expanded Memory (first 2MB or 4MB installed). OPEN "\WIZARD\GRAPHICS\LION.PCX" FOR INPUT AS #2 DA# = INPUT$(3800,#2) C$=CHR$(27) WIDTH "LPT1:",255 LPRINT C$;"A";C$;"CC1"; LPRINT C$;"PI011,03800,";DA$ LPRINT C$;"Z"; CLOSE #2 Printer Output There is no printer output as a result of this command. See PY PCX Graphics Recall command. Special Notes 1. This command requires Expanded Memory option. Call your Oki Data representative for details. 2. Graphics cannot be stored as part of a format. 3. Only black and white PCX files can be stored. 4. The file size specified by this command is the DOS file size in bytes. 76

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137

Expanded Memory Function
Graphics, PCX Store
Command Structure
<ESC>PIaaa,bbbbb,{data}
aaa
=
Storage area number.
bbbbb
=
Size of PCX file in bytes.
{data}
=
Data.
Example:
<ESC>PI001,32000,{data}
Placement: This command must be placed within its own data stream.
Default:
None.
Command Function
To store for later printing a PCX graphic file in Expanded Memory.
Input to Printer
BASIC Program to Download a PCX file to Expanded Memory (first 2MB or 4MB
installed).
OPEN “\WIZARD\GRAPHICS\LION.PCX” FOR INPUT AS #2
DA# = INPUT$(3800,#2)
C$=CHR$(27)
WIDTH “LPT1:”,255
LPRINT C$;”A”;C$;”CC1”;
LPRINT C$;”PI011,03800,”;DA$
LPRINT C$;”Z”;
CLOSE #2
Printer Output
There is no printer output as a result of this command. See <ESC>PY PCX
Graphics Recall command.
Special Notes
1.
This command requires Expanded Memory option. Call your Oki Data
representative for details.
2.
Graphics cannot be stored as part of a format.
3.
Only black and white PCX files can be stored.
4.
The file size specified by this command is the DOS file size in bytes.
76