Oki X400 X400 Programming Command Manual - Page 133

Custom Graphics Example

Page 133 highlights

CUSTOM GRAPHICS EXAMPLE The following example is presented to help you understand the use of the Custom Graphics command. It demonstrates the design and printing of an "diskette" in a 48x48 matrix. 1. Determine the matrix size for the graphic. It must be in 8 dot by 8 dot blocks. The example here has six blocks horizontally and six blocks vertically (48x48). 2. Lay out a grid and draw the image on the grid. Each square represents one dot Blacken squares for each printed dot 3. Transfer the image into a bit map representation and then into hexadecimal format: BIT MAP HEXDECIMAL 1 2 3 4 5 6 12 34 5 6 11111111 11111111 11111111 11111111 11111111 11111111 FF FF FF FF FF FF 11111111 11111111 11111111 11111111 11111111 11111111 FF FF FF FF FF FF 11000000 00000000 00000000 00000000 00000000 00000011 C0 00 00 00 00 03 11000000 00000000 00000000 00000000 00000000 00000011 C0 00 00 00 00 03 11000000 00000000 11111111 11111111 11111111 11110011 C0 00 FF FF FF F3 11000000 00000000 10000000 00000000 00000000 00000011 C0 00 80 00 00 13 11000000 00000000 10000000 00000000 00000000 00000011 C0 00 80 00 00 13 11000000 00000000 10011111 11111111 11111111 00010011 C0 00 9F FF FF 13 11000000 00000000 10000000 00000000 00000000 00000011 C0 00 80 00 00 13 11000000 00000000 10000000 00000000 00000000 00000011 C0 00 80 00 00 13 11000000 00000000 10011111 11111111 11111111 00010011 C0 00 9F FF FF 13 11000000 00000000 10000000 00000000 00000000 00000011 C0 00 80 00 00 13 11000000 00000000 10000000 00000000 00000000 00000011 C0 00 80 00 00 13 11000000 00000000 11111111 11111111 11111111 11110011 C0 00 FF FF FF F3 11000000 00000000 00000000 00000000 00000000 00000011 C0 00 00 00 00 03 11000000 00000000 00000000 00000000 00000000 00000011 C0 00 00 00 00 03 11000000 00000000 00000000 00000000 00000000 00000011 C0 00 00 00 00 03 11000000 00000000 00000000 00000000 00000000 00000011 C0 00 00 00 00 03 11000000 00000000 00000000 00000000 00000000 00000011 C0 00 00 00 00 03 11000000 00000000 00000000 00000000 00000000 00000011 C0 00 00 00 00 03 11000000 00000000 00000011 11000000 00000000 00000011 C0 00 03 C0 00 03 131

  • 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

CUSTOM GRAPHICS EXAMPLE
The following example is presented to help you understand the use of the Custom Graphics command. It
demonstrates the design and printing of an “diskette” in a 48x48 matrix.
1.
Determine the matrix size for the graphic. It must be in 8 dot by 8 dot blocks. The example here has six
blocks horizontally and six blocks vertically (48x48).
2.
Lay out a grid and draw the image on the grid.
z
Each square represents one dot
z
Blacken squares for each printed dot
3.
Transfer the image into a bit map representation and then into hexadecimal format:
BIT MAP
HEXDECIMAL
1
2
3
4
5
6
1
2
3
4
5
6
11111111 11111111 11111111 11111111 11111111 11111111
FF FF FF FF FF FF
11111111 11111111 11111111 11111111 11111111 11111111
FF FF FF FF FF FF
11000000 00000000 00000000 00000000 00000000 00000011
C0 00 00 00 00 03
11000000 00000000 00000000 00000000 00000000 00000011
C0 00 00 00 00 03
11000000 00000000 11111111 11111111 11111111 11110011
C0 00 FF FF FF F3
11000000 00000000 10000000 00000000 00000000 00000011
C0 00 80 00 00 13
11000000 00000000 10000000 00000000 00000000 00000011
C0 00 80 00 00 13
11000000 00000000 10011111 11111111 11111111 00010011
C0 00 9F FF FF 13
11000000 00000000 10000000 00000000 00000000 00000011
C0 00 80 00 00 13
11000000 00000000 10000000 00000000 00000000 00000011
C0 00 80 00 00 13
11000000 00000000 10011111 11111111 11111111 00010011
C0 00 9F FF FF 13
11000000 00000000 10000000 00000000 00000000 00000011
C0 00 80 00 00 13
11000000 00000000 10000000 00000000 00000000 00000011
C0 00 80 00 00 13
11000000 00000000 11111111 11111111 11111111 11110011
C0 00 FF FF FF F3
11000000 00000000 00000000 00000000 00000000 00000011
C0 00 00 00 00 03
11000000 00000000 00000000 00000000 00000000 00000011
C0 00 00 00 00 03
11000000 00000000 00000000 00000000 00000000 00000011
C0 00 00 00 00 03
11000000 00000000 00000000 00000000 00000000 00000011
C0 00 00 00 00 03
11000000 00000000 00000000 00000000 00000000 00000011
C0 00 00 00 00 03
11000000 00000000 00000000 00000000 00000000 00000011
C0 00 00 00 00 03
11000000 00000000 00000011 11000000 00000000 00000011
C0 00 03 C0 00 03
131