HP LaserJet 4100 HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu
HP LaserJet 4100 Manual
View all HP LaserJet 4100 manuals
Add to My Manuals
Save this manual to your list of manuals |
HP LaserJet 4100 manual content summary:
- HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 1
- HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 2
- HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 3
PCL 5 Color Technical Reference Manual - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 4
. AppleTalk is a registered trademark of Apple Computer, Inc. PCL and Resolution Enhancement are registered trademarks of Hewlett-Packard Company. IBM is a registered trademark of International Business Machines Corporation. Hewlett-Packard Company 11311 Chinden Boulevard Boise, Idaho 83714 U.S.A. - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 5
What You Can Learn From This Manual This manual describes the PCL 5 commands used to print color on the HP Color LaserJet printer family and the other Hewlett-Packard PCL 5 color printers. Some of the main topics include an overview of the color printing process, using palettes, choosing color - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 6
HP Color LaserJet, Color LaserJet 5, 5M, and the DeskJet 1200C and 1600C printers. Chapters 5 through 7 pertain to all the color printers described in this manual Monochrome Print Mode command, Driver Configuration command, and Finish Mode command. Chapter 5. The PCL Print Model Chapter 5 describes - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 7
discusses printing color pages using HP-GL/2, the vector graphics language included on all PCL 5 printers. The chapter describes new and/or modified HP-GL/2 commands and how they are used to print with HP color printers. Appendix A. Color Printing Overview (Color LaserJet, 5, 5M, DeskJet) Appendix - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 8
commands described in the PCL 5 Printer Language Technical Reference Manual. Printer Job Language Technical Reference Manual This manual describes PJL, the HP printer job language used on many of the Hewlett-Packard printers. PJL is used for switching printer languages, requesting status information - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 9
PCL 5 Color Technical Reference Manual Inside This Manual iii Manual Organization iv Related Documents vi Chapter 1 Color Printing Overview Introduction 1-1 Working with color documents 1-2 PCL Color Mode 2-3 PCL Imaging Mode 2-5 Configure Image Data (CID) Command 2-5 HP-GL/2 Imaging Mode - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 10
and sRGB Palettes 3-13 Device CMY Palettes 3-14 HP-GL/2 Palettes 3-15 Foreground Color 3-17 Foreground Driver Configuration Command 4-4 Finish Mode Command 4-6 Chapter 5 The PCL Patterns 5-33 How the Printer Tiles a Pattern 5-34 Pattern Reference Point 5-36 Download Pattern Command 5-38 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 11
/White 5-52 Shaded Fill 5-54 Chapter 6 Raster Graphics Introduction 6-1 PCL 5 Color Raster Graphics 6-4 Raster Graphics Command Sequence 6-6 Raster Graphics Resolution Command 6-8 Raster Graphics Presentation Mode Command 6-10 Source Raster Height Command 6-13 Source Raster Width Command - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 12
B Using Color Modes (Color LaserJet, 5, 5M, DeskJet) Introduction B-2 Simple Color Mode B-4 PCL Imaging Mode B-6 Configure Image Data (CID) Command B-6 Short Form of CID Command (Configure Image Data B-15 Long Form of CID Command (Configure Image Data B-17 HP-GL/2 Imaging Mode B-28 Appendix - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 13
Algorithms D-3 Render Algorithm Command D-3 User-Defined Dithers D-6 Download Dither Matrix Command D-7 Multiple Dither Matrices D-10 Color Lookup Tables D-13 Gamma Correction D-17 Viewing Illuminant D-18 Monochrome Printing D-20 Driver Configuration Command D-21 Index EN Contents xi - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 14
Contents xii EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 15
Green Blue) as an international color data standard and the growing sophistication of Hewlett-Packard printers has allowed HP to provide high quality WYSIWYG color documents with a much simpler PCL color command set. Therefore, this manual has two main parts: Chapters 1 through 7 present the latest - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 16
graphics objects and images. The parts of a document either have data can be interpreted correctly. For vector graphics and text, the PCL 5 color commands support PCL 5 color command, Render Algorithm, specifies which half-tone to use for a color. Advances in Hewlett-Packard printers have allowed HP - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 17
. The PCL Print Model determines the logical operations (known as ROPs, Raster Operations) used to combine each part of the graphic object. PCL 5 Color color. The colors seen on a printed material such as paper are reflected from the paper surface, which absorbs some of the light. Colors seen under - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 18
and materials used to produce it. For instance, color displays and color printers use very different mechanisms for producing color. Traditionally, operating systems have supported color by declaring support for a particular color space (RGB in most cases). However, since the interpretation - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 19
HP software distribution channels. For those who want the additional control available through building their own ICC profiles, there are several vendors of profiling tools available. To provide access to the printer data. Additionally, most existing file formats do not support device drivers and - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 20
be applied to all text and vector graphics page marking primitives, and to a certain extent to is also supported for the convenience of applications that work well with a graphics stack. PCL 5 Color at index 0 and black at index 1. When the printer is reset with an ?E it reverts to this mode. • - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 21
• PCL Imaging mode is entered with the Configure Image Data command that PCL and HP-GL/2. Any and all of the modes can be used on a page. For example, you could enter the Simple Color mode to print a headline and bar chart, PCL raster images, a pixel is a single bit which takes on a value of zero or - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 22
PCL 5 color command set supports several Pixel Encoding Modes. The PEMs are categorized first by whether the pixel is an index into a palette, or a color specification. The other PEM categorization is whether the pixel data required to combine the bits from each plane into a single number, - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 23
Well-Behaved Raster PCL raster images are processed most efficiently when the height and width of the image are specified before the Raster Start command begins an image data transfer. Furthermore, the entire image should be transferred before using the End Raster command to end the image. If the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 24
1-10 Color Printing Overview EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 25
Modes Introduction The PCL printer language has four color modes: • Black-and-White • Simple Color • PCL Imaging • HP-GL/2 Imaging PCL allows you to is the default color mode. PCL devices power up in this mode and revert back to it whenever the printer receives an ?E reset. Black-and-White mode is - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 26
different than default PCL palettes, an HP-GL/2 palette is modifiable in either PCL or HP-GL/2 (using the Assign Color Index [?*v#I] or Pen Color [PC] commands, respectively). Likewise, a PCL palette created by the Configure Image Data command (?*v#W) is modifiable in both PCL and HP-GL/2 using the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 27
specifies color selection from a fixed palette. RGB or CMY raster data must be sent by plane (?*b#V) as well as by row (?*b#W). palette, which becomes the active palette. When the Simple Color mode is active, PCL and HP-GL/2 commands that modify the palette are locked out (NP, PC, ?*v#A, ?*v#B, - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 28
The Simple Color palettes are structured as follows: Single Plane (value = 1) Index 0 1 Color White Black 3-Plane RGB (value = 3) Index 0 1 2 3 4 5 6 7 Color Black Red Green Yellow Blue Magenta Cyan White 3-Plane CMY (value = -3) Index 0 1 2 3 4 5 6 7 Color White Cyan Magenta Blue Yellow Green - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 29
Configure Image Data (CID) Command The CID command provides configuration information for creating palettes and transmitting raster data. The CID command performs the format must be eight bits per component for 24-bit direct color, and the direct-by-plane, where there is one bit per component. ?*v6W - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 30
Bits/index Bits/primary #2 87 0 (LSB) Pixel encoding mode Bits/primary #1 Bits/primary #3 Byte 1 3 5 Invalid configurations of the CID command are ignored and the data the designation for Colorimetric RGB in the Color LaserJet and Color LaserJet 5 printers. The value 2 is used to represent - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 31
between the red, green, and blue bytes within the pixel. Raster data in Index by Plane or Direct by Plane modes cannot be compressed using raster compression mode 5. You need one plane or one bit/pixel for each power of two colors in the palette. For example, a 256-color palette requires - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 32
0: INDEXED BY PLANE In Pixel Encoding Mode 0, successive planes of data are sent for each raster row. A plane contains one bit for each pixel in a row. A pixel is not fully defined until all the planes for that row have been received, which is signaled by a transfer raster row command. The planes - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 33
before any bits are sent for the next pixel. The bits for each pixel form a palette index number. Assuming four bits per 08 ?*r1A ?*b1W45 ?*b1W6A ?*b1W03 Binary Data for the CID command represented in hexadecimal. 6, the second pixel is index 10. Move to the next row. The first pixel is index - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 34
In this mode, a pixel is composed of three, one-bit components. The data is transferred a plane at a time, one plane for each component. Therefore, each bit in a plane represents one component of a pixel. The underlined bits below show the components for a pixel. ?*b#V row 1 ?*b#V ?*b#W ?*b#V row - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 35
This byte determines the size of the created palette. The palette size is two raised to the power of n (2n), where n is the bits per index. • In the Indexed-by-Plane PEM, where the raster data is interpreted as palette indices, this value determines the number of planes required per row. EN Using - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 36
• In the Indexed-by-Pixel PEM, where the raster data is interpreted as palette indices, this value determines how to interpret the byte-ordered row transfers. The following list shows how each byte is translated into indices: Bits/Index 1 2 4 8 Indices/Byte 8 4 2 1 • In the Direct-by-Plane and - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 37
does stay the same. You can switch between PCL and HP-GL/2 and use the same palette, and you can also modify palettes using either PCL or HP-GL/2. Compared to monochrome printers, the HP Color LaserJet printer family, DeskJet 1200C and 1600C color printers have some commands that are new and - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 38
2-14 Using Color Modes EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 39
of color specifications selected using index numbers. The figure below illustrates a palette. Each palette entry associates an index number with three primary color components. For HP-GL/2 purposes only, a pen width is also associated with each palette entry. EN Using Palettes 3-1 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 40
created, the currently or previously active palette is destroyed. A new palette is created by power-on and also by the following commands: • PCL Reset (?E) • Simple Color (?*r#U) • Configure Image Data (?*v#W) • HP-GL/2 Initialize (IN) The active palette can be saved by pushing it onto the palette - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 41
popped. Pushing a palette saves the following parameters: • Color definitions for each palette entry • Pen widths (for HP-GL/2 use) • Color space specification • Number of bits per index • Pixel encoding mode • Number of bits per primary • Color treatment • Render algorithm EN Using Palettes 3-3 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 42
is limited by printer memory. Attempts to push a palette with insufficient memory cause an out-of-memory error. Attempts to PCL reset command (?E) or an exit to PJL causes the printer to empty the palette stack and overwrite the active palette with a non-programmable black and white palette. The HP - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 43
Palette Management by ID All palettes have a unique ID (identification number). The default black and white palette created on power-up or ?E has an ID of 0. Palette management by ID lets applications have multiple palettes. As shown below, multiple palettes can exist in two areas: - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 44
data, have multiple raster configurations, and have palettes for different color spaces-all without reconfiguring the active palette. For example, one palette can be created for PCL text, one for HP-GL/2 primitives, one for simple raster, and one for 24-bit raster. The application can then switch - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 45
a palette creation command is received such as Configure Image Data (?*v#W), Simple Color (?*r#U), or an HP-GL/2 IN, the created resets the palette select ID value to 0 and deletes all palettes in the palette stack and palette store, including the active palette, which is replaced by a default PCL - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 46
-range values) The ID number specified by this command is saved as the palette control ID and is used by the Palette Control command (?&p#C). ?E or power-up resets the palette control ID to 0, which is then the default black and white palette ID. Macros affect the palette control ID value as follows - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 47
and white palette, the graphics state associated with the previous palette is also replaced. • A value of 6 creates a copy of the active palette. The copy receives the ID specified by the last Palette Control ID command. For example, to copy the active palette to a palette with an ID of 14, send - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 48
when the macro is exited. The adverse effect could be the deletion of the desired palette, and replacement with a black and white non-programmable palette. 3-10 Using Palettes EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 49
command overwrites the current palette with one of the fixed palettes below. When the Simple Color command is in effect, the PCL and HP-GL/2 commands that modify a palette entry (NP, PC, ?*v#A, ?*v#B, ?*v#C, ?*v*I, ?*t*I) are locked out. A popped simple color palette cannot be modified and the pixel - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 50
3-Plane CMY (value = -3) Index 0 1 2 3 4 5 6 7 Color White Cyan Magenta Blue Yellow Green Red Black 3-12 Using Palettes EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 51
Color Palettes The Configure Image Data command, explained in detail in Chapter 2, creates a palette based upon the parameters in its data field. CID-created palettes are programmable: any entry can be reassigned a different color using PCL commands (?*v#A, ?*v#B, ?*v#C, ?*v*I) or HP-GL/2 commands - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 52
Device CMY Palettes Bits/Index = 1 Index 0 1 Bits/Index = 2 Index 0 1 2 3 Bits/Index = 3 through 8 Index 0 1 2 3 4 5 6 7 n > 7 Color White Black Color White Cyan Magenta Black Color White Cyan Magenta Blue Yellow Green Red Black Black 3-14 Using Palettes EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 53
. The following table shows the default palettes established in HP-GL/2. Like a default CID palette, a default HP-GL/2 palette can be modified in either PCL or HP-GL/2 contexts using the following commands: PCL • Color Components 1, 2, and 3 (?*v#A, ?*v#B, ?*v#C) • Assign Color Index (?*v#I) Note - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 54
Eight Pens Pen Number 0 1 2 3 4 5 6 7 n > 7 Color White Black Red Green Yellow Blue Magenta Cyan Black 3-16 Using Palettes EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 55
a foreground color index of 10 when the current palette size is 8 maps to 10 modulo 8, which is equal to 2. If the current palette was created under HP-GL/2, the index is mapped according to the HP-GL/2 mapping function. Foreground color affects the following PCL page marking primitives: • Text - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 56
Note Foreground color interacts with color raster images. In the printer, all color raster is resolved into three binary raster planes color until a new Foreground Color command (?*v#S) is issued: • Active Palette • Configure Image Data (CID) command • Render Algorithm 3-18 Using Palettes EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 57
Default = 0 Range = -32767.0000 to 32767.0000 (up to 4 decimal places; command is ignored for invalid configurations) The Assign Color Index command actually applies this value and then resets it to 0. Color Component Two This command specifies the second component of the palette entry designated by - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 58
command is ignored for invalid configurations) The Assign Color Index command actually applies this value and then resets it to 0. Assign Color 2n - 1, where n is the number of bits per index (no assignment for out-of-range values) This command resets the color components to 0 after assignment. If - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 59
palettes. This portion of the manual explains how color can be modified treatment and finish mode. The HP color printers can modify colors using the page. • The Monochrome Print Mode command converts each color to its grayscale equivalent for faster, draft printing. • The Driver Configuration - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 60
Halftone Render Algorithms The HP color printers have the capability of applying different halftone Algorithm Command The Render Algorithm command selects the algorithm to be used for rendering page marking entities on a given page. ?*t#J # = 0 - Continuous tone detail (high lpi) (device best dither - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 61
print using the current rendering mode or a fast gray-scale equivalent. Pages printed using the gray-scale equivalent do not use any color and therefore prior to printable data, or it is ignored. The command must be sent at the start of a job, since few, if any, applications support a mixture of - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 62
Driver Configuration Command This command specifies the color treatment applied to each color specification Range = see description below device_id Value 6 8 Printer Color LaserJet printer family Color LaserJet 4500 printer function_index function_ index Description 4 Select Color 3 Treatment - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 63
and scanners. This treatment indicates that the printer should be ready to accept sRGB data. This is the preferred mode of operation to provide a good appearance match between the monitor and the printed document The table below lists the driver configuration commands for both color treatments: The - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 64
finish can be requested for plain or matte paper. ?&b#F # = 0 - Matte finish 1 - Glossy finish Default = 0 Range = 0, 1 (command is ignored for invalid values) The finish mode must be set before the first page is marked and applies to all the pages in the document. Each document defaults to a matte - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 65
printer's predefined shading or cross-hatch patterns, or with a user-defined pattern. Images include any raster graphic, such as one created with PCL a rectangular fill area (as described later in this chapter as PCL Rectangular Area Fill Graphics); or characters selected from any font. Figure - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 66
page, text and raster images are printed using the current pattern. Once the current pattern is specified, it stays in effect until another is selected or the printer is reset. A reset in which the non-white bits are replaced by the of the following: HP-GL/2 primitives, rules PCL Print Model EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 67
logical operations, such as AND, OR, XOR, and NOT when determining which bits of the source, pattern, and texture become part of the resulting image. The Logical Operations command (?*l#O) can vary the logical on the colors used. Figure 5-2 Opaque and Transparency Modes EN The PCL Print Model 5-3 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 68
example (1d), both source and pattern modes are "opaque." The entire source image is overlaid onto the destination, and the entire circle is patterned. 5-4 The PCL Print Model EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 69
Figure 5-3 Effect of Transparency Modes on Images EN The PCL Print Model 5-5 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 70
data downloaded to the page is considered destination image. ?*v#N (source) and/or ?*v#O (pattern) If a logical operation other than the default (TSo-252) is desired, specify the operation with the ?*l#O command. Pattern ID ?*c#G If using a user-defined pattern, it must be downloaded to the printer - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 71
subject to transparency modes. Refer to the preceding definitions and the discussion of Figure 5-3 for an explanation of the effects of source transparency. EN The PCL Print Model 5-7 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 72
to transparency modes. Refer to the preceding definitions and the discussion of Figure 5-2 and Figure 5-3 for an explanation of the effects of pattern transparency. 5-8 The PCL Print Model EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 73
operation is to be performed on the source, texture the logical operation is performed or printable data is sent. The print be one of the following: • HP-GL/2 primitives • Rules • Characters is currently defined on the page. It includes any images XOR, NOT, to be performed on source, texture, and - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 74
(format 1). • Destination: current page definition Operation • IF (source transparent && source == white) RETURN destination • IF (pattern transparent && pattern == white && source != white) RETURN destination • ELSE RETURN (logical op (source, texture, destination) 5-10 The PCL Print Model EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 75
logical operations. All of these logic operations map directly to their ROP3 (raster operation) counterparts (see the Microsoft Document, Reference, Volume 2, Chapter 11, Binary and Ternary Raster Operation Codes). The logical operations were defined for Microsoft Windows for an RGB color space. In - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 76
are transparent (defaulted), the additional operations shown below must be performed to achieve the final result. The four basic interactions are: of each pixel. However, the Logical Operation is applied on a bit-by-bit basis without regard to color. In order to obtain a result PCL Print Model EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 77
Logical Operation Command Specifies the logical operation (ROP) to be performed in RGB color space on destination, source and texture to produce new destination data. Texture is defined as a combination of pattern and foreground color. ?*l # O # = Logical operation value (see Table 5-4) Default = - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 78
ROP map show destination values for each combination of Texture, Source and Destination. A "1" in the RGB color space represents white and a "0" black, which makes determining what shows on paper cumbersome for users since the paper is marked when the Destination has a "0" value. 5-14 The PCL Print - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 79
values) for the CMY color space are the opposite (negation) of the RGB values. However, a CMY ROP is easier to use when determining if the page is marked, since a "1" denotes marking. EN The PCL Print Model 5-15 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 80
is 01011010 when written in most significant to least significant bit order. Looking at the truth table for ROP 90 in Table 5-2 you can see that the only time the page is marked is when the Texture and Destination are both ROP, in either the RGB or CMY color spaces. 5-16 The PCL Print Model EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 81
, write the ROP in binary format, invert the bits, and reverse the order. When source and/or pattern transparency modes are set opaque (not defaulted), values specified by this command map directly to the ROP3 (raster operation) table values on the following page. However, when source and/or pattern - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 82
identify the logical operation (refer to page 5-12 for source/pattern transparency interactions). Table table (Table 5-4) shows the mapping between input values and their logical printer operates in something similar to a CMY space and inverts the bits and reverses the order. 5-18 The PCL Print Model EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 83
3 TSon 30 4 SDTona 31 5 DTon 32 6 TDSxnon 33 7 TDSaon 34 8 SDTnaa 35 9 TDSxon 36 10 DTna 37 11 TSDnaon 38 12 STna 39 13 TDSnaon 40 14 TDSonon 41 15 Tn 42 16 TDSona 43 17 TSDnoan TSna SDTnaon SDTSoox Sn STDSaox STDSxnox EN The PCL Print Model 5-19 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 84
DTSox 60 TSx 87 DTSoan 61 STDSonox 88 TDSToax 62 STDSnaox 89 DTSnox 63 TSan 90 DTx 64 TSDnaa 91 DTSDonox 65 DTSxon 92 DTSDxox 66 SDxTDxa 93 DTSnoan 67 STDSanaxn 94 DTSDnaox 68 SDna 79 TDSnoan 106 DTSax 80 TDna 107 TSDTSoaxxn 5-20 The PCL Print Model EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 85
STxDSxon 156 STDnax 130 DTSxna 157 DSTDoaxn 131 STDSnoaxn 158 DSTDSaoxx 132 SDTxna 159 TDSxan 133 TDSTnoaxn 160 DTa 134 DSTDSoaxx 161 TDSTnaoxn EN The PCL Print Model 5-21 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 86
SDTxan 210 TDSnax 184 TSDTxax 211 STDSoaxn 185 DSTDaoxn 212 SSTxTDxax 186 DTSnao 213 DTSanan 187 DSno 214 TSDTSaoxx 188 STDSanax 215 DTSxan 5-22 The PCL Print Model EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 87
235 DTSxno 255 Boolean Function SDTao SDTxno DSo SDTnoo T TDSono TDSnao TSno TSDnao TDno TDSxo TDSano TDSao TDSxno DTo DTSnoo TSo TSDnoo DTSoo 1 EN The PCL Print Model 5-23 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 88
Pixel Placement HP PCL 5 printers place pixels at the intersection of the squares of a theoretical, device-dependent grid covering the printable area on the page. Depending on the image and the logical operation in effect, a problem may occur when the sides of two polygons touch each other-the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 89
5-5 Pixel Placement Note The grid-centered method is used by Microsoft Windows. When rectangular area fills are used and grid intersection is used, can produce undesirable results in the final printed image. To avoid this problem, use the grid-centered method. EN The PCL Print Model 5-25 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 90
Note Since PCL printers print only at intersections, grid- centered pixel placement is implemented as shown on the right. Figure 5-6 Pixel Placement Variations There are two commands that modify the pixel placement function: the PCL Pixel Placement command (?*l#R) and the HP-GL/2 Pixel Placement - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 91
can be used multiple times per page. It has no effect except to switch the model being used for imaging. Note The PCL Pixel Placement command determines how pixels are placed for both PCL and HP-GL/2 operation. This command performs the same function as the HP-GL/2 PP command described in Chapter - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 92
4 Apply the pattern to the rectangle. Send the Fill Rectangular Area command (?*c#P). HP-GL/2 Patterns PCL patterns can be used in HP-GL/2 mode, but HP-GL/2 patterns cannot be used in PCL mode. Using HP-GL/2, patterns are downloaded using the RF (Raster Fill) command, and applied using the FT (Fill - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 93
2% shade # = 1 - Pattern #1 3 thru 10 = 3-10% shade 2 - Pattern #2 11 thru 20 = 11 supported on all PCL 5 printers. Refer to the "PCL Feature Support Matrix" in Chapter 1 of the PCL 5 Comparison Guide the HP-defined downloading a user-defined pattern, assigns an ID pattern number to the downloaded - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 94
Figure 5-7 Shading Patterns 5-30 The PCL Print Model EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 95
Figure 5-8 Cross-Hatch Patterns EN The PCL Print Model 5-31 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 96
black (black rule), only the Select Current Pattern command is required. Once a current pattern is selected, that pattern applies to all images placed on the page until a new pattern is selected. 5-32 The PCL Print Model EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 97
-hatch patterns, users can design their own fill patterns. These user-defined patterns are downloaded to the printer and controlled using three commands: • Download Pattern ?*c#W [data] • Set Pattern Reference Point ?*p#R • Pattern Control ?*p#Q Using User-Defined Patterns To create a new pattern - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 98
and improved performance, it is being rendered differently across the page (if tiled), or due to variations in xy position. How the Printer Tiles a Pattern A user the printer. To apply the pattern to an image area on the page, the printer duplicates the base pattern across and down the page. This - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 99
Figure 5-10 Pattern Layout Across the Printable Area EN The PCL Print Model 5-35 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 100
is a position on the logical page at which the base pattern is positioned for tiling. The upper left corner of the base pattern is positioned at this point (see Figure 5-10). The default pattern reference point is left corner of each area and the area filled separately. 5-36 The PCL Print Model EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 101
Figure 5-11 Moving Pattern Reference Point for Pattern Filling EN The PCL Print Model 5-37 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 102
downloading the binary pattern data that defines the user pattern. ? * c # W [pattern data] # = Number of pattern data bytes Default = 0 Range = 0 - 32767 (HP Color LaserJet the downloadable pattern format: Format 0 Format 1 1 bit per pixel: black-and-white or foreground color. A "1" bit indicates - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 103
Continuation (Byte 1) This field, byte 1, must be set to "0." (This byte is for future printer support and does not currently provide any continuation operation.) Pixel Encoding (Byte 2) The bits/index field may be either 1 or 8. If the value is 1, the color of each pattern dot is specified by a - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 104
pattern triangle (in this case, using 64 bytes of data). The base pattern binary data is shown below: 11111111111111111111111111111111 01111111111111111111111111111110 00111111111111111111111111111100 F0 00 00 07 E0 00 00 03 C0 00 00 01 80 00 5-40 The PCL Print Model EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 105
(01 hex) Byte 3 - Reserved 0 (00 hex) Byte 4/5 - Height in Pixels 0 / 16 (00 / 10 hex) Byte 6/7 - Width in Pixels 0 / 32 (00 / 20 hex) Byte 8 - Begins the first bytes of binary data. The PCL code below downloads the user-defined pattern and assigns it an ID number of 3. 1. Specify the pattern - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 106
Send the pattern header and binary data: 00 00 01 00 00 10 00 20 FF FF FF FF even number of bytes in user-defined pattern data, hence the trailing zeros ("padding") in the last eight data rows above. In the previous example, the raster data code is presented in hexadecimal, however, the numbers - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 107
All patterns are rotated for changes in orientation, but the pattern reference point remains the same (refer to "Logical Page Orientation Command" in Chapter 5 of the PCL 5 Printer Language Technical Reference Manual). This command applies to user-defined, shading, and cross-hatch patterns. EN The - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 108
(?*c#G) command is sent prior to the Pattern Control command to identify the specific pattern to which the Pattern Control command action is applied. 5-44 The PCL Print Model EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 109
mode has no effect, since the printer treats the rectangular area as a the printable area of the logical page. Rectangular areas are not affected area onto the destination. The white bits of the pattern are either applied or is applied to the non-white bits of the pattern prior to pouring - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 110
of the logical page. Values outside the range of 0 - 32767 are ignored. Decipoints are converted into printer dot values, and any fraction of a dot is rounded up to the next full dot size. The default rectangle size is 0. Power-up and reset return this value to the default. 5-46 The PCL Print Model - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 111
logical page. Values outside the range of 0 - 32767 are ignored. Decipoints are converted into printer dot values, and any fraction of a dot is rounded up to the next full printable dot. The default rectangle size is 0. Power-up and reset return this value to the default. EN The PCL Print Model - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 112
-hatched patterns as specified by the Pattern ID command. User-defined fill-fills the rectangular area with custom pattern data as specified by the Pattern ID command and downloaded by the User-Defined Pattern command. Current Pattern-fills the rectangular area with the current pattern. 5-48 The - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 113
Addressable rectangular areas are limited to the logical page. Rectangular areas that extend outside the logical page are clipped at the logical page boundaries (refer to the PCL 5 Printer Language Technical Reference Manual for logical page and printable area boundary specifications). The pattern - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 114
3 (cross-hatch fill), or 5 (current pattern fill) of the Fill Rectangular Area command. The "0'' bits of the fill pattern are either applied (opaque) or ignored (transparent) based on the transparency mode setting (see pattern is visible in the entire rectangular area. 5-50 The PCL Print Model EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 115
This example is a monochrome example and assumes the default ROP. Figure 5-12 Effect of Transparency Modes on Rectangular Areas EN The PCL Print Model 5-51 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 116
at 300 units-per-inch), then "white fill" a small area inside the black rectangle, perform the following steps. 1 Position the cursor: ?*p300x400Y This moves the cursor to PCL Unit position (300, 400) within the PCL coordinate system. 2 Specify the width of the rule: ?*c900A This sets the rule - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 117
7 Select the white fill and print. ?*c1P Figure 5-13 Solid Fill Example EN The PCL Print Model 5-53 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 118
Unit 25% shaded rectangle (3 inches by 5 inches at 300 units-per-inch), perform the following steps. 1 Position the cursor: ?*p300x400Y This moves the cursor to PCL Unit position (300, 400) within the PCL coordinate system. 2 Specify the width of the rectangle: ?*c900A This sets the rectangle - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 119
5 Print the rectangular shaded area: ?*c2P This example prints the following: Figure 5-14 Shaded Fill Example EN The PCL Print Model 5-55 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 120
5-56 The PCL Print Model EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 121
Pictures such as those in newspapers, television, and documents from Hewlett-Packard printers are examples of raster images. In comparison, pictures drawn example. However, PCL raster only supports identical resolutions in the horizontal and vertical directions, and therefore, PCL 5 raster graphics - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 122
image resolution smaller than the printer's resolution will undergo a process of scaling as the image is converted to the printer's resolution, also known as which yield a range of grays when viewed by the human eye, a single bit is not sufficient. Therefore, the general form of a pixel is: • The - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 123
image, or where the pixel is an index into the palette. The table below shows some possible combinations of the number of components and the bits per component. Image Type Black and White, direct Black and White, indexed Color, indexed Color, direct Number of Components - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 124
the color image is 600 dpi, 24-bit color, its size is 86 Mbytes. Therefore, the PCL 5 language supports several compressions modes that exploit redundancy between adjacent pixels or adjacent rows. Furthermore, several shortcuts are available to avoid sending data that is really large blocks of zeros - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 125
be used to direct the printer to set all the pixel values in the given number of rows to zero. 2 If not enough data is sent for all the pixels have been received, the values of the pixels in the remaining rows will be set to zero. Furthermore, if too much data is sent the data extending outside the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 126
Raster Graphics Command Sequence PCL raster commands include: Start Raster Graphics and End Raster Graphics commands, Transfer Raster Data by Plane and Row sequence of execution for these commands is shown below. Hewlett-Packard strongly recommends that developers use this command sequence in their - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 127
true modes. Once specified, the printer remains in that mode unless explicitly changed by issuing the command again, or reset to default values by a soft reset, self test, font printout, or power cycle. Only raster data appearing within the intersection of the logical page, the printable area, the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 128
can be printed at various resolutions. This command designates the resolution of subsequent raster data transfers in dots per inch. ? * t # R # = 75 - 000 bits. Note that lower resolution graphics may not give acceptable print quality. When configured for 300 dpi resolution, the printer automatically - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 129
Figure 6-2 Raster Graphics Expansion - at 300 dpi Note Rectangular area fills and character data are not affected by changes in resolution. Rectangular Area fills and character data always print at the maximum resolution, regardless of the resolution setting. EN Raster Graphics 6-9 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 130
page. ? * r # F # = 0 - Raster image prints in orientation of logical page 3 - Raster image prints along the width of the physical page page, regardless of logical page orientation. In portrait orientation, a raster row is printed in the positive X-direction of the PCL of the PCL coordinate system - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 131
3 reverse portrait 3 landscape 3 reverse landscape Default Graphics Margin logical page left bound logical page left bound logical page left bound logical page left bound logical page left bound logical page left bound 50 dots in from the logical page top bound 50 dots in from the logical - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 132
Figure 6-4 Raster Graphics Presentation Mode for Landscape Orientation 6-12 Raster Graphics EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 133
both a raster height and a raster width are specified (non-zero) and a Start Raster Graphics (or Transfer Raster Data) command is received, then the raster area is guaranteed to be filled. Note For color printers, a zero fill is not necessarily white. If the raster height is not set, no padding or - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 134
until the next End Raster Graphics command. Only raster data appearing within the intersection of the logical page, the printable area, and if set, the raster width and height, is printed. Data outside the intersection is clipped. Upon receiving an End Raster Graphics (?*rC) command, the cursor - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 135
raster width with zeros. Unspecified data maps to either white or transparent depending on the source transparency mode (this is true only if index 0 is white). Note For color printers, a zero fill is not necessarily white. When a Transfer Raster Data command is received that specifies a row of - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 136
Figure 6-6 Maximum Raster Width 6-16 Raster Graphics EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 137
left graphics margin is at the default left margin of the page (X-position 0). A value of 1 specifies that the left received by the printer, received. Once in Raster Graphics Mode, PCL commands and text imply an End Raster Graphics (?*rC) except for the following commands: • Transfer Raster Data - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 138
Raster Graphics Resolution • Palette Commands • CID Command • Color Treatment • Render Algorithm An implied End Raster Graphics resets the Raster Compression Method 3 seed row, but does not reset the Raster Compression Method nor the left raster graphics margin. If source and/or transparency modes - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 139
this command zeros the seed row. For Adaptive compression (method 5), this command applies to the entire raster data block. Note Movement by this command is based upon the Raster Resolution setting (?*t#R) and also the printer's resolution setting (75, 150, or 300 dpi). EN Raster Graphics 6-19 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 140
between rows, without regard to the pixel encoding mode of the data. While these methods reduce the amount of data transferred from the host to the printer, they do not reduce the memory requirements within the printer. While PCL 5 compression methods are based on redundancies at the byte level, the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 141
pairs of bytes. The first byte of each pair is the repetition count for the data in the second byte. The second byte is the raster data to be printed. A repetition count of 0 signifies the pattern in the data byte is not repeated (it occurs only once). A repetition count of 1 signifies the pattern - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 142
pattern three times would require the twos complement of the number 3. The twos complement is computed as follows. The binary of 3 is 00000011. Complement each bit to get 11111100, then add one to this value to produce 11111101, the twos complement. The decimal value of this number, 253, used in the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 143
examples show how a raster row can be coded using run-length and TIFF compression methods. Note that the compression examples use characters to represent the binary data stream. Byte #1 #2 #3 #4 #5 #6 #7 Number Bits 01010101 01010101 01010101 01010101 01000001 01010100 01010100 ASCII - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 144
row, then the entire row must be sent as the delta, which is not very efficient; if only one bit is different, then only one byte is identified and sent. To reassemble the raster data rows, the printer takes the current row (the seed row) and makes the changes indicated by the delta - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 145
lower five bits identify the location the replacement bytes are to be positioned. This position is identified as the offset, or the number of bytes from the treated byte. For example, if there are 5 replacement bytes and the offset is 7, then the replacement bytes replace bytes 7, 8, 9, 10, and 11 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 146
mentioned, the offset contained in the lower five bits of the command byte allows for offset values 128. Seed Row The seed row is basically the current raster data row, the row being printed. It is maintained by the printer for use by delta row compression. The delta compression replacement bytes - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 147
compression method to be mixed with other methods to achieve better compression performance. Repeating a Row ?* b 0 W When using the delta compression method, it is possible to repeat or copy the previous raster row using the Raster Data Transfer command. This is accomplished by setting the Raster - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 148
selects the delta row compression method and the 2W indicates 2 bytes of data to follow. The first three bits of the first data byte, the command byte, signify a single byte replacement (all three bits are 0). The next five bits indicate an offset of 1 byte from the current position. The replacement - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 149
size of a block is limited to 32,767 bytes. (32,767 bytes is the number of compressed bytes and not the size of the uncompressed data). To transfer greater than 32,767 bytes, send multiple blocks. Adaptive compression uses three control bytes at the beginning of each row within the block - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 150
65,535; however, the image is clipped to the logical page. Thus, the value of these bytes should not exceed the maximum number /rows> bytes following the command byte. The empty row operation resets the seed row to zero and updates the cursor position. Duplicate Row A command byte of 5, duplicate - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 151
Note EN Adaptive Compression Operation Hints Some HP LaserJet printers perform internal compression techniques to support full-page graphics. Refer to Chapter 1 of the PCL 5 Comparison Guide for specifics. • The compression methods cannot be mixed within one raster row. A raster row must be - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 152
Configure Image Data command (?*v#W). The Transfer Raster Data by Plane command is used to send each plane in the row except the last; the Transfer Raster Data It is used for monochrome printers for the last plane in a multi-plane row, or for color raster transfer when the data is encoded by pixel. - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 153
. The number of planes per row is specified by the Simple Color command (?*r#U) or the Configure Image Data command (?*v#W), depending on which color mode is used. The first plane sent represents the least significant bit in the pixel. Since ?*b#V does not advance the cursor to the beginning of the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 154
byte is ignored. If the last byte indicated by the value field in the Transfer Raster Data command is a control byte, that byte is ignored. If a Transfer Raster Data command is received without an accompanying Start Raster Graphics command, any preceding start raster values are used (such as left - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 155
by the HP LaserJet III or the HP LaserJet IIID printers. Use the ?*rB End Raster Graphics command to terminate raster graphic data transfers for these printers. Refer to the "PCL Feature Support Matrix" in Chapter 1 of the PCL 5 Comparison Guide for specific printers which support these commands - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 156
of device resolution. Note To use raster scaling, the Configure Image Data command (?*r#W) must be sent prior to the Start Raster raster dimensions. Arbitrary Scaling This scaling is performed without regard to the raster resolution which round off errors will not create visible print artifacts such as - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 157
by the next Start Raster command, which must have a value field of 2 or 3 (?*r2A or ?*r3A). ? * t # H # = Width (in decipoints) Default = Right logical page boundary minus left graphics margin Range = 0 - 32767.0000 (values outside the range are ignored) Zero or absent values default the destination - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 158
(see Figure 6-7) in the shape of an arrow, perform the following steps (notice the well-behaved raster sequence is utilized): 1 Position the cursor: ?*p300x400Y Move the cursor to PCL Unit position (300, 400) within the PCL coordinate system. 2 Specify Raster Presentation Mode 0: ?*r0F Print - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 159
raster compression mode: ?*b0M No compression (unencoded). 9 Transfer the raster data to the printer: Divide the image into dot rows and transfer each dot row to the printer as a string of bytes, as illustrated on the following page. 10 Signify the end of the raster image transfer: ?*rC This - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 160
00000000 11100000 00000000 ?*b4W[ 0, 0,224, 0] 31 00000000 00000000 11000000 00000000 ?*b4W[ 0, 0,192, 0] 32 00000000 00000000 10000000 00000000 ?*b4W[ 0, 0,128, 0] The brackets and commas are not part of the raster data command; they are used only to delineate the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 161
Figure 6-7 Example of Raster Graphic Image Data EN Raster Graphics 6-41 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 162
are decoded as follows: PCL Command Description Command Arguments E Reset *v6W\x00\x01\x08\x Configure Image Data 08\x08\x08 Color space: device RGB Pixel Encoding Mode: indexed by pixel Bits/Index: 8 Bits/Primary 1: 8 Pits/Primary 2: 8 Bits/Primary 3: 8 *t600R Change - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 163
, you'll notice that the first row is sent unencoded and then the remaining rows replicated by switching to delta row encoding and sending 299 zero rows. This method depends on two features of the PCL 5 command set: 1 The 1st row became the seed row at the end of the first row - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 164
W\e*b0W\e*b0W\e*b0W\e*b0W\e*b0W\e*b0W\e*b0W\e*b0W\e*b0W\e*b0 W\e*b0W\e*b0W\e*b0W\e*b0W\e*b0W\e*b0W\e*b0W\e*b0W\e*b0W\e*b0 W\e*b0W\e*b0W\e*b0W\e*b0W\e*b0W\e*b0W\e*b0W\e*b0W\e*b0W\e*b0 W\e*b0W\e*b0W\e*b0W\e*b0W\e*b0W\e*b0W\e*b0W\e*b0W\e*b0W\e*b0 W\e*b0W\e*b0W\e*b0W\e*b0W\e*b0W\e*b0W\e*b0W\e*b0W\e*b0W - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 165
data (the CR command is not supported by the HP Color LaserJet 4500 or 8500 printers). In general, when using HP-GL/2 on the HP Color LaserJet family and DeskJet 1200C and 1600C color printers, keep in mind that: • Palette information stays the same when switching between PCL 5 and HP-GL/2. • The HP - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 166
, interpreting commands as HP-GL/2 commands until it receives an Enter PCL Mode, ?E, or UEL command, or until the printer power is switched off and on. The value field (#) determines the cursor position once HP-GL/2 mode is entered. Note HP Color LaserJet printers do not support ?%-1B, ?%2B, or - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 167
is entered using any dual-context mode (any variation of the command except ?%-1B), the HP-GL/2 and PCL contexts can be merged, resulting in the following: • HP-GL/2 and PCL data can be combined on the same page. • HP-GL/2 graphics can be integrated directly with text. • The size and location of the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 168
GL/2 environment: • Resetting the printer (?E or control panel reset): z Executes an IN (Initialize) command z Defaults the PCL Picture Frame size z Defaults the PCL Picture Frame anchor point z Defaults the HP-GL/2 plot size z Defaults the PCL logical page orientation • A page size, page length, or - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 169
Picture Frame size or setting the anchor point: z Defaults P1 and P2 (IP, IR commands) z Resets the soft-clip window (IW) to the PCL Picture Frame boundaries. z Clears the polygon buffer (PM0, PM2) z Updates the current pen position to the lower-left corner of the picture frame (P1). • Setting an - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 170
or more page marking primitives intersect on the page. This command supports all 256 Microsoft Windows ternary (ROP3) raster operation codes. A common data and the contents of the destination (frame buffer). If no opcode is specified,168 is used. Note This command is the HP-GL/2 version of the PCL - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 171
code (opcode) specifies the logical operations that are performed on a source, destination, and patterned image prior to drawing the final image. The opcodes are created by listing 1 1 0 0 0 0 0 1 1 1 1 1 1 1 0 204 (0xCC) 238 (0xEE) 102 (0x66) EN Color Vector Graphics (HP-GL/2) 7-7 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 172
vector operation and do not produce raster data for use by a ROP operation.) All other Fill Type command patterns (types, 10, 11, 21, or 22) operate as expected. The MC command supports all 255 Microsoft Windows ROPS, which are listed on the following page in reverse polish notation (RPN) using the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 173
Table 7-1. Logical Operations (ROP3) Input Value 0 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 Boolean Function 0 DTSoon DTSxa TSDTSaoxxn DTSana SSTxTDxaxn STDSoax TSDnox TSDTxox TSDnoan TSna SDTnaon SDTSoox Sn STDSaox STDSxnox EN Color Vector Graphics (HP-GL/2) 7-9 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 174
Operations (ROP3) (continued) Input Value 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 Boolean DTSnoan DTSDnaox DTan TDSxa DSTDSaoxxn DSTDoax SDTnox SDTSoax DSTnox DSx SDTSonox DSTDSonoxxn TDSxxn DTSax TSDTSoaxxn 7-10 Color Vector Graphics (HP-GL/2) EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 175
SDTSxoxn SSDxTDxax TDSanan TDSxna SDTSnoaxn DTSDToaxx STDaxn TSDTSoaxx DTSaxn DTSxx TSDTSonoxx SDTSonoxn DSxn DTSnax SDTSoaxn STDnax DSTDoaxn DSTDSaoxx TDSxan DTa TDSTnaoxn EN Color Vector Graphics (HP-GL/2) 7-11 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 176
STDSonoxn TSxn STDnoa STDSxoxn SDTnax TSDToaxn SDToa STDoxn DTSDxax STDSaoxn S SDTono SDTnao STno TSDnoa TSDTxoxn TDSnax STDSoaxn SSTxTDxax DTSanan TSDTSaoxx DTSxan 7-12 Color Vector Graphics (HP-GL/2) EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 177
255 Boolean Function SDTao SDTxno DSo SDTnoo T TDSono TDSnao TSno TSDnao TDno TDSxo TDSano TDSao TDSxno DTo DTSnoo TSo TSDnoo DTSoo 1 EN Color Vector Graphics (HP-GL/2) 7-13 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 178
supporting the CR command, the CR command determines the range) • pen - specifies the number of the pen whose color is being defined. An out-of-range pen parameter sets error 3 and limits (the CR command is not supported by the HP Color LaserJet 4500 or 8500 printers). 7-14 Color Vector Graphics - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 179
as shown in the table on the following page for an HP-GL/2 palette. When color device palettes larger Red Green Yellow Blue Magenta Cyan For black and white printers that accept color descriptions and palettes, pen 0 defaults to dark gray shades. The mapping algorithm is device-dependent. However, - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 180
Note In the "shading" Fill Type command (FT10;), the shading levels are mapped between white (0% shading) and the equivalent gray level for the currently selected pen (100% shading). In the "HP-GL/2 user-defined" Fill Type command (FT11;), each pixel in the RF pattern is rounded to white or black - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 181
HP color printers is 8. • n - the parameter n denotes the size of the HP-GL/2 palette, where n is a power of two. If n is not a power of two, the next larger power colors the printer is able to produce. If n is larger than that maximum, the maximum-sized palette is allocated. If n < 2, error 3 is - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 182
of continuous vectors. For more information, see the descriptions of the Line Attribute (LA) and Line Type (LT) commands in the PCL 5 Printer Language Technical Reference Manual. The number of pens is defaulted by an IN command. This command is ignored if the current palette was created by the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 183
sets the range for specifying relative color data. Note This command is only supported by the HP Color LaserJet, Color LaserJet 5, 5M, and DeskJet printers. It is not supported by the HP Color LaserJet 4500 or 8500 printers. CR [b_ref_red, w_ref_red, b_ref_grn, w_ref_grn, b_ref_blue, w_ref_blue - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 184
printer places pixels at the intersection of the squares of a theoretical, device-dependent grid covering the printable area on a page. When the sides of two HP more polygons on a page share a common border, grid centering (value=1) can be turned on. Since PCL printers print only at the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 185
Figure 7-1 Pixel Placement EN Color Vector Graphics (HP-GL/2) 7-21 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 186
see Figure 7-1). When the printer is set to grid-centered page; it has no effect except to switch the model used for imaging. This command is the HP-GL/2 version of the PCL Pixel Placement command. Whatever mode is selected, using the HP-GL/2 PP command also applies to PCL operation. Likewise the PCL - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 187
of Hewlett-Packard color printing. The features described in these appendices are a superset of those supported by the HP Color LaserJet, Color LaserJet 5, 5M and DeskJet printers. Some features are supported on one or more printers, but not necessarily on all of them. See the PCL 5 Comparison Guide - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 188
different or more specific colors, the printer offers the PCL Imaging and HP-GL/2 Imaging Modes. The palette page. Besides providing device-independent color for precise color matching, the HP printers can modify color to compensate for various characteristics. The Color LaserJet printer supports - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 189
palette is active at any time, all palettes are assigned ID numbers and can be stored in the printer for later selection using the ID number. They can be deleted when desired. Palettes can also be saved later in this section.) EN Color Printing Overview (Color LaserJet, 5, 5M, DeskJet) A-3 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 190
example, if red is specified in a device-dependent color space, two different printers will combine the same amounts of cyan, magenta, yellow, and black toner produce. If 10 were chosen instead, then 10 would represent the same red. A-4 Color Printing Overview (Color LaserJet, 5, 5M, DeskJet) EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 191
data bit combination for each pixel forms an index number. The example below shows how the index numbers for an 8-color palette are specified: Three-bit combinations: Palette index number: 0 1 0 1 0 1 0 1 0 0 1 1 0 0 1 1 0 0 0 0 1 1 1 1 0 1 2 3 4 5 6 7 EN Color Printing Overview (Color LaserJet - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 192
uses successive data planes, each providing one bit for each received all the planes for that row. The planes in a row form index numbers that define a pixel by selecting a palette entry. For example, an 8-entry palette requires 3 planes (23 = 8). The underlined bits LaserJet, 5, 5M, DeskJet) EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 193
before any bits are sent for the next pixel. For example, if four bits are needed to define a pixel, then every group of four bits in the data stream modify the palettes in the PCL Imaging and HP-GL/2 Imaging modes. You can use more than one mode on the same page. For example, you could enter - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 194
• Color Lookup Tables (?*l#W) • Configure Image Data (?*v#W) • Simple Color (?*r#U) • Monochrome Print Mode (?&b#M) Color lookup tables or gamma correction (which are mutually exclusive) can modify the mapping of input to output. Device-Independent Color Spaces The following PCL commands can alter - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 195
number of colors available, or are undefined to the extent that their performance is not as precise. These algorithms, therefore, produce device-dependent results to one of the 5 listed above and the color space has not changed. EN Color Printing Overview (Color LaserJet, 5, 5M, DeskJet) A-9 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 196
, devices receiving relative color specifications for the same color frequently do not produce the same color. For example, a monitor's saturated red may be different than a plotter's. In short, the same color page may appear considerably different on different devices. The HP color printers provide - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 197
However, HP Color LaserJet 5 and 5M printers are of a printed page with the monitor on which the page was designed will paper. True color matching would require that gray be printed in the black areas and colored dots be printed in the white areas. EN Color Printing Overview (Color LaserJet - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 198
output, are transformations that map input data into a new output color range based upon point-by-point conversions. Overhead transparencies provide one example of a good use for color lookup tables. Let's say a page is printed on plain paper and it matches the user's expectations. When printing the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 199
to another. For example, printed colors that look normal in natural sunlight shift in hue when viewed under fluorescent and tungsten lighting. The PCL language allows the user to compensate for the differences in viewing illumination using the Viewing Illuminant command. It allows the user to select - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 200
page consist of either: • Page Marking Primitives (non-raster data) • Color Raster Data Page Marking Primitives Non-raster data consists of HP-GL/2 and PCL page some text to the printer, the text will be printed blue. Color Raster Data Unlike page marking primitives, each LaserJet, 5, 5M, DeskJet) EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 201
these two color uses, page marking primitives and color raster data, color processing must: • Convert color attributes to an internal representation that can be poured through the page marking stencil onto the destination via some logical operation. • Convert multiple-bit-per-pixel color raster to - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 202
A-16 Color Printing Overview (Color LaserJet, 5, 5M, DeskJet) EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 203
, 5, 5M, DeskJet) This appendix describes how color commands were supported on the following printers: • HP Color LaserJet, Color LaserJet 5 / 5M • HP DeskJet 1200C and 1600C Since then, the PCL 5 color command set has been simplified as described in Chapter 1. Appendices A through D and Chapters - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 204
is the default color mode. PCL devices power up in this mode and revert back to it whenever the printer receives an ?E reset. Black-and-White mode is also indexed planar. PCL Imaging Mode PCL Imaging Mode, enabled by the Configure Image Data command (?*v#W), allows a maximum of 24 bits per pixel for - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 205
different than default PCL palettes, an HP-GL/2 palette is modifiable in either PCL or HP-GL/2 (using the Assign Color Index [?*v#I] or Pen Color [PC] commands, respectively). Likewise, a PCL palette created by the Configure Image Data command (?*v#W) is modifiable in both PCL and HP-GL/2 using the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 206
or CMY raster data must be value field specifies the number of planes per row of raster data to be sent. The number of entries in the new Simple Color mode is active, PCL and HP-GL/2 commands that modify the palette (compatible with a PCL Imaging Mode palette, but not an HP-GL/2 default (IN) palette - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 207
Red Green Yellow Blue Magenta Cyan White 3-Plane CMY (value = -3) Index 0 1 2 3 4 5 6 7 Color White Cyan Magenta Blue Yellow Green Red Black EN Using Color Modes (Color LaserJet, 5, 5M, DeskJet) B-5 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 208
Imaging Mode The PCL Imaging mode, entered using the Configure Image Data (CID) command (?*v#W), creates a variable-sized programmable palette. It provides halftoning in the printer, with multiple color spaces, pixel encoding modes, and reprogrammable palettes. Configure Image Data (CID) Command The - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 209
of which color space is specified. The header data fields, whose meaning may vary according to the pages. Byte 0 2 4 15 (MSB) 8 Color space (UBYTE) Bits/index (UBYTE) Bits/primary #2 (UBYTE) 7 0 (LSB) Pixel encoding mode (UBYTE) Bits/primary #1 (UBYTE) Bits LaserJet, 5, 5M, DeskJet) B-7 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 210
-Chrominance spaces are a 3x3 linear transformation from Colorimetric RGB. Like CIE L*a*b*, achromatic data is contained in one channel and chromatic data shares the other two channels. HP Color LaserJet 5 and 5M printers parse and discard the CID command when Colorimetric RGB spaces are specified - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 211
one plane or one bit/pixel for each power of two colors in the palette. For example, a 256-color palette requires 8 planes or 8 bits/pixel (28 = planes of data are sent for each raster row. A plane contains one bit for each pixel in a row. A pixel is not fully defined until it has received all the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 212
. Assuming 4 bits per index, the underlined block below is the palette index for pixel 2 of row 1 (i1 is lsb). ?*b#W ?*b#W ?*b#W row 1 row 2 row 3 i4 i3 i2 i1 i4 i3 i2 i1 . . . i4 i3 i2 i1 i4 i3 i2 i1 . . . i4 i3 i2 i1 i4 i3 i2 i1 . . . B-10 Using Color Modes (Color LaserJet, 5, 5M - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 213
next row. # First pixel is index 6, second pixel is index 10. Move to the next row. # First pixel is index 0, second pixel is index 3. Move to the next row. MODE 2: DIRECT BY PLANE In mode 2, the color raster data for each row is downloaded by sequential planes, but the pixel color is directly - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 214
of the pixel. # Transfer plane for primary color 3 and move to the next row. Each bit turns on or off the blue primary of the pixel. MODE 3: DIRECT BY PIXEL In mode 3, the color raster data is downloaded pixel by pixel (as in mode 1), but each pixel directly specifies each color component (as - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 215
it designates the number of data bits needed to specify primary #1, as well as the number of data planes to be sent for primary #1. • In pixel encoding mode 3, this byte designates the number of data bits needed to specify primary #1. EN Using Color Modes (Color LaserJet, 5, 5M, DeskJet) B-13 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 216
of data planes to be sent for primary #3. • In pixel encoding mode 3, this byte designates the number of data bits needed to specify primary #3. A value of 0 defaults the black and white reference values for primary #3 according to the color space. B-14 Using Color Modes (Color LaserJet, 5, 5M - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 217
Note Note Short Form of CID Command (Configure Image Data) The Short Form of the CID -of-range data is clipped. L* = 0.0 to 100.0 a* = -100.0 to 100.0 b* = -100.0 to 100.0 CIE L*a*b* color space support is at HP Color LaserJet level for HP Color LaserJet 5 and 5M printers. • Colorimetric - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 218
allows the following ranges: Y = 0.0 to 1.0 U = -0.89 to 0.89 V = -0.70 to 0.70 Luminance-Chrominance color space support is at HP Color LaserJet level for HP Color LaserJet 5 and 5M printers. Data Range Scaling White and black references define the encoding range for device-dependent color spaces - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 219
of CID Command (Configure Image Data) In addition to bits for that primary. Byte 0 2 4 6 8 10 12 14 16 15 (msb) 87 (lsb) 0 Color space Pixel encoding mode Bits per index Bits per primary #1 Bits per primary #2 Bits 9 11 13 15 17 EN Using Color Modes (Color LaserJet, 5, 5M, DeskJet) B-17 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 220
15 (msb) 8 7 (lsb) 0 0 Color space Pixel encoding mode 2 Bits per index Bits per primary #1 4 Bits per primary #2 Bits per primary #3 6 White reference for primary #1 (sint16) 8 White reference for primary #2 (sint16) 10 White reference for primary #3 (sint16) 12 Black reference for - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 221
and b* have no theoretical limits, L*a*b* data may be sent outside CID constraints. Then data is clipped to preserve hue and compressed to the device's printable gamut. CIE L*a*b* color space support is at HP Color LaserJet level for HP Color LaserJet 5 and 5M printers. The white point is based on - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 222
the white point is specified in the CID data field by chromaticity coordinates (CIE xy). The tristimulus Bits per Index Bits per primary #1 4 Bits per primary #2 Bits per primary #3 6 x Chromaticity for red primary (msw) 8 x Chromaticity for red primary (lsw) 10 LaserJet, 5, 5M, DeskJet) EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 223
primary (lsw) 58 Gain for blue primary (msw) 60 Gain for blue primary (lsw) 62 Minimum red value (msw) 64 Minimum red value (lsw) 66 Maximum red value (msw) 68 Maximum red value (lsw) 70 Minimum green value (msw 67 69 71 73 75 EN Using Color Modes (Color LaserJet, 5, 5M, DeskJet) B-21 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 224
) (lsb) 0 Byte 77 79 81 83 85 Note HP Color LaserJet 5 and 5M printers bypass the Colorimetric RGB process. In place of it, a 2 Bits per index Bits per primary #1 4 Bits per primary #2 Bits per primary #3 6 Encoding for primary #1 R (msw) 8 Encoding for primary #1 R (lsw) 10 Encoding - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 225
58 Minimum primary #3 value (msw) 60 Minimum primary #3 value (lsw) 62 Maximum primary #3 value (msw) 64 Maximum primary #3 value (lsw) 66 x Chromaticity for red primary (msw) 68 x Chromaticity for red primary ( 65 67 69 71 73 75 EN Using Color Modes (Color LaserJet, 5, 5M, DeskJet) B-23 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 226
79 81 83 85 87 89 91 93 95 97 99 101 103 105 107 109 111 113 115 117 119 121 CIE L*a*b* color space support is at HP Color LaserJet level for HP Color LaserJet 5 and 5M printers. B-24 Using Color Modes (Color - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 227
used: CID ( data , data , . . . ) Device RGB or Device CMY SHORT FORM CID(0,1,8,8,8,8) CID(1,1,8,8,8,8) Device RGB, 8 bits/pixel indexed Device CMY, 8 bits/pixel indexed Example: Device RGB, 8 bits/pixel indexed White reference Black reference EN Using Color Modes (Color LaserJet, 5, 5M, - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 228
1.0, 2.2, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0) RGB, direct 8 bits/primary | | Chromaticity coordinates | for RGB & White Point | * * Gamma and gain for RGB * | | Data range encoding | Non-Linear Sony Trinitron SHORT FORM Not Applicable B-26 Using Color Modes (Color LaserJet, 5, 5M, DeskJet) EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 229
bits/primary | | Chromaticity coordinates | for RGB | White Point * * Gamma and gain for RGB * | | Data range encoding | YUV Chrominance-Luminance Color Space SHORT FORM CID(4,3,0,8,8,8) YUV, direct 8 bits 19) YUV, direct 8 bits/primary | | 3x3 YUV matrix | * * Data encoding * | | - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 230
palette information does stay the same. You can switch between PCL and HP-GL/2 and use the same palette, and you can also modify palettes using either PCL or HP-GL/2. Compared to monochrome printers, the Color LaserJet and DeskJet 1200C color printers have some commands that are modified for use - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 231
C Using Palettes (Color LaserJet, 5, 5M, DeskJet) Introduction A palette is a collection of color specifications selected using index numbers. The figure below illustrates a palette. Each palette entry associates an index number with three primary color components. For HP-GL/2 purposes only, a pen - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 232
created, the currently or previously active palette is destroyed. A new palette is created by power-on and also by the following commands: • PCL Reset (?E) • Simple Color (?*r#U) • Configure Image Data (?*v#W) • HP-GL/2 Initialize (IN) The active palette can be saved by pushing it onto the palette - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 233
(for HP-GL/2 use) • Color space specification • Black and white references • Number of bits per index • Pixel encoding mode • Number of bits per primary • Gamma correction • Viewing illuminant • Color lookup tables • Render algorithm • Downloaded dither matrix EN Using Palettes (Color LaserJet - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 234
is limited by printer memory. Attempts to push a palette with insufficient memory cause an out-of-memory error. Attempts to PCL reset commands (?E) and exits to PJL cause the printer to empty the palette stack and overwrite the active palette with a non-programmable black and white palette. The HP - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 235
ID All palettes have a unique ID (identification number). The default black and white palette created on power-up or ?E has an ID of 0. Palette management by ID lets applications have multiple palettes. Only one palette at a time may be active. EN Using Palettes (Color LaserJet, 5, 5M, DeskJet) C-5 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 236
data, have multiple raster configurations, and have palettes for different color spaces-all without reconfiguring the active palette. For example, one palette can be created for PCL text, one for HP-GL/2 primitives, one for simple raster, and one for 24-bit raster. The application can then switch - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 237
command is received such as Configure Image Data (?*v#W), Simple Color (?*r#U), or an HP-GL/2 IN resets the palette select ID value to 0 and deletes all palettes in the palette stack and palette store, including the active palette which is replaced by a default PCL LaserJet, 5, 5M, DeskJet) C-7 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 238
modified print environment and is used by the Palette Control command (?&p#C). ?E or power-up resets the palette control ID to 0, which is then the default black and a macro-copies the value before resetting to 0, and restores at exit. C-8 Using Palettes (Color LaserJet, 5, 5M, DeskJet) EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 239
the previous palette is also replaced. • A value of 6 creates a copy of the active palette. The copy receives the ID specified by the last Palette Control ID command. For example, to copy the active palette to a to be copied to its own ID. EN Using Palettes (Color LaserJet, 5, 5M, DeskJet) C-9 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 240
when the macro is exited. The adverse effect could be the deletion of the desired palette, and replacement with a black and white non-programmable palette. C-10 Using Palettes (Color LaserJet, 5, 5M, DeskJet) EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 241
one of the fixed palettes below. When the Simple Color command is in effect, the PCL and HP-GL/2 commands that modify a palette entry (NP, CR, PC, ?*v#A, ?*v#B, ?*v#C, 1 2 3 4 5 6 7 Color Black Red Green Yellow Blue Magenta Cyan White EN Using Palettes (Color LaserJet, 5, 5M, DeskJet) C-11 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 242
3-Plane CMY (value = -3) Index 0 1 2 3 4 5 6 7 Color White Cyan Magenta Blue Yellow Green Red Black C-12 Using Palettes (Color LaserJet, 5, 5M, DeskJet) EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 243
Color Palettes The Configure Image Data command, explained in detail in Appendix B, creates a palette based upon the parameters in its data field. CID-created palettes are programmable: any entry can be reassigned a different color using PCL commands (?*v#A, ?*v#B, ?*v#C, ?*v*I) or HP-GL/2 commands - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 244
Bits/Index = 3 through 8 Index 0 1 2 3 4 5 6 7 n > 7 Color Black Red Green Yellow Blue Magenta Cyan White Black C-14 Using Palettes (Color LaserJet, 5, 5M, DeskJet) EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 245
the printer's native space, Device CMY. Bits/Index = 1 Index 0 1 Color White Black Bits/Index = 2 Index 0 1 2 3 Color White Cyan Magenta Black Bits/Index = 3 through 8 Index 0 1 2 3 4 5 6 7 n > 7 Color White Cyan Magenta Blue Yellow Green Red Black Black EN Using Palettes (Color LaserJet - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 246
. The following table shows the default palettes established in HP-GL/2. Like a default CID palette, a default HP-GL/2 palette can be modified in either PCL or HP-GL/2 contexts using the following commands: PCL • Color Components 1, 2, and 3 (?*v#A, ?*v#B, ?*v#C) • Assign Color Index (?*v#I) Note - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 247
Eight Pens Pen Number 0 1 2 3 4 5 6 7 n > 7 Color White Black Red Green Yellow Blue Magenta Cyan Black EN Using Palettes (Color LaserJet, 5, 5M, DeskJet) C-17 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 248
a foreground color index of 10 when the current palette size is 8 maps to 10 modulo 8, which is equal to 2. If the current palette was created under HP-GL/2, the index is mapped according to the HP-GL/2 mapping function. Foreground color affects the following PCL page marking primitives: • Text - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 249
In the printer, all is issued: • Active Palette • Configure Image Data (CID) command • Render Algorithm • maps foreground color to its equivalent gray. Similarly, deselection of Monochrome Print Mode immediately returns foreground color to its color equivalent. EN Using Palettes (Color LaserJet - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 250
command. ?*v#B # = Second Component Default = 0 Range = -32767.0000 to 32767.0000 (up to 4 decimal places; command is ignored for invalid configurations) The Assign Color Index command actually applies this value and then resets it to 0. C-20 Using Palettes (Color LaserJet, 5, 5M, DeskJet) EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 251
command is ignored for invalid configurations) The Assign Color Index command actually applies this value and then resets it to 0. Assign Color 2n - 1, where n is the number of bits per index (no assignment for out-of-range values) This command resets the color components to 0 after assignment. If - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 252
C-22 Using Palettes (Color LaserJet, 5, 5M, DeskJet) EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 253
. This portion of the manual explains how color can be modified to produce a desired result, from using halftone render algorithms to change the way color is rendered, to compensating for the yellow cast caused by a tungsten light source in a photograph. The HP color printers can modify colors using - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 254
• The Driver Configuration command provides a way for a driver to calibrate the output by adjusting color lightness, saturation, and color map information. All of these methods of modifying output color are explained in the following sections. D-2 Modifying Output Color (Color LaserJet, 5, 5M, - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 255
HP color printers with the Download Dither Matrix be used for rendering page marking entities on a given page. ?*t#J # = 0 Error diffusion 5 - Monochrome device best dither 6 - Monochrome error diffusion 7 - Cluster ordered dither 8 - Monochrome cluster ordered dither 9 - User-defined dither 10 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 256
1, 2, 9, and 10 are ignored for device independent . For example, assuming 8 bits per primary, an RGB input error is propagated to the unprinted neighboring pixels. Error diffusion applies only to raster data printed using the Configure Image Data command. D-4 Modifying Output Color (Color LaserJet - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 257
it is impossible to characterize a printer for all possible dither algorithms. If one of these render algorithms is selected when in a device-independent color space, the device best dither algorithm will be used instead. HP Color LaserJet 5 and 5M printers do not support user-defined dithering. EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 258
HP Color LaserJet 5 and 5M printers remap non-continuous tone render algorithms into continuous tone algorithms. The following remapping takes place: Snap to primaries = Snap black to white, color to black = Device best dither = Error User-Defined Dithers The Download Dither Matrix command - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 259
pixel with a value less than the threshold does not get turned on. HP Color LaserJet 5 and 5M printers do not support user-defined dithers. When a Download Dither Matrix command is sent, the printer parses and discards the matrix data and selects the continuous tone smooth 150 lpi algorithm instead - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 260
10. However, if the current render algorithm (or last render algorithm received) was a user-defined algorithm (value 9 or 10), then a user-defined matrix will take effect as soon as it is downloaded ("uint 16" means unsigned 16-bit integer; "ubyte" means unsigned byte LaserJet, 5, 5M, DeskJet) EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 261
how many dither matrices are specified by the command. The command is ignored and the data discarded for any value other than 1 or 3. Byte Value Value Description 1 One the primary colors-note that the color data is in RGB values). EN Modifying Output Color (Color LaserJet, 5, 5M, DeskJet) D-9 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 262
matrices are sent. If the width, height, and data specifications result in an odd number data bytes, the next matrix specification will begin on an odd matrix must have its own width and height data fields. As shown below, the matrix specification for each primary follows the previous - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 263
create this dither matrix: ?*m22W010404B0B1B2B3B4 . . . B15 (where the first 6 binary bytes are shown as ASCII here for clarity, and B1 . . . B15 indicate the binary byte data). EN Modifying Output Color (Color LaserJet, 5, 5M, DeskJet) D-11 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 264
pattern will not rotate with changes in orientation and page rotation. HP Color LaserJet 5 and 5M printers do not support the Download Dither Matrix command. When this command is sent, the printer parses and discards the matrix data. The printer selects the Continuous Tone Smooth 150 lpi algorithm - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 265
color spaces; it performs a 1:1 mapping of input to output (that is, 129 is mapped to 129). The inversion lookup table performs a simple color inversion data] # = Number of bytes of binary data Default = 0 Range = 0 or 770 (command is ignored for other values; sign is ignored) A value of 0 resets - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 266
Figure D-1 Color Lookup Tables This command enables the color lookup tables until an ?E, Configure Image Data (CID), or another Color Lookup Tables command with a 0 value field is received. Note RGB gamma correction (?*t#I) and color lookup tables for device-dependent color spaces are mutually - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 267
2 bytes for specifying the color space and reserved data field. Byte 15 (msb) 87 (lsb) 0 Byte 0 Color Space Reserved Data Field 1 2 Color Component 1, Index 1 Color Component Index 255 Color Component 3, Index 256 769 EN Modifying Output Color (Color LaserJet, 5, 5M, DeskJet) D-15 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 268
, a Luminance-Chrominance space can have four lookup tables specified, namely: • Device-Dependent space • CIE L*a*b* space • Colorimetric RGB space • Luminance-Chrominance space A reset (?E), IN, or CID command sets each of the four levels of color lookup tables for each primary to the unity curve - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 269
correctness by adjusting the brightness or darkness of the color data sent from the monitor to any other non-linear The practical range for gamma values is 0.0 to 4.0. Assuming 8 bits per primary (256 intensity levels per primary), the corrected intensity for Color LaserJet, 5, 5M, DeskJet) D-17 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 270
received, changing the appearance of mixed colors. The Viewing Illuminant command (?*i#W) supports communication of standard illuminations to the printer to allow the printer signs in the value field are ignored The binary data field is formatted as follows: Byte 0 2 4 LaserJet, 5, 5M, DeskJet) EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 271
The PCL default viewing illuminant is D65 (6500K). Below is a table of viewing illuminants and their chromaticity values. Illuminant Daylight (D65 it becomes active when a new CID command specifies a device-independent color space. EN Modifying Output Color (Color LaserJet, 5, 5M, DeskJet) D-19 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 272
using gray-scale equivalent Default = 0 Range = 0, 1 (command is ignored for invalid values) This command must be sent prior to printable data; otherwise, the current page is closed and printed. It may be sent on a page-by-page basis. D-20 Modifying Output Color (Color LaserJet, 5, 5M, DeskJet) EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 273
Driver Configuration Command This command specifies the Lightness, Saturation, and Scaling Algorithm to be applied to the document, and allows for the selection and downloading of Color Maps. ?*o#W[device_id function_index Arguments] # = Specifies the number of bytes to follow (device ID function - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 274
Range 5 Download Color 1 CMY Color Space Map 3 CIE Lab Color Space See MapID List (14739 bytes) 1 For the original Color LaserJet printer, the graphics color, but will not have any effect on black or white data. Positive values increase the amount of saturation, making the image more vivid - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 275
out-of-gamut colors are snapped to the gamut surface. This setting only supports the device-independent color map. This setting is not supported by HP Color LaserJet 5 and 5M printers. CIE L*a*b* Match This map performs a true color match to the requested CIE L*a*b* input (there are no appearance - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 276
long form of the Configure Image Data command is used and the color maps are generated internally dependent upon the monitor calibration data (the Driver Configuration command is not needed). Download Color Map The printer supports the downloading of color adjustment maps dependent upon the halftone - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 277
-TrueMatch-DD Disperse-TrueMatch-DD Scatter-TrueMatch-DD ErrorDiffusion-TrueMatch-DD MapID 17 18 19 20 21 22 23 24 EN Modifying Output Color (Color LaserJet, 5, 5M, DeskJet) D-25 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 278
-TrueMatch-DI Disperse-TrueMatch-DI Scatter-TrueMatch-DI ErrorDiffusion-TrueMatch-DI MapID 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 D-26 Modifying Output Color (Color - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 279
bytes 6-29 cursor position 6-31 data block 6-28 delta row 6-29, coding efficiency, raster compression 6-23 color concepts A-3 device-dependent A-2, A-4, A-10 device-independent A-2, A-4, A-10 foreground 3-17, C-18 lookup tables A-12, D-13 map HP-GL/2 imaging mode 2-2, 2-13, B-3, B-28 PCL imaging - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 280
10 download dither matrix command D-7 download pattern command 5-38 driver configuration command 4-4, D-21 duplicate row, adaptive compression 6-29 E empty row, adaptive compression 6-29 encoding by pixel A-7 by plane A-6 end raster graphics command 6-35 enter HP-GL/2 mode 7-2 escape sequences (PCL - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 281
5 color mode 1-6 PCL 5 Comparison Guide vi PCL 5 raster images 1-7 PCL imaging mode 2-2, 2-5, B-2, B-6 PCL print model 5-1 PCL/PJL Technical Quick Reference Guide vi pen color (PC) command 7-14 pixel encoding A-6, A-7 user-defined pattern descriptor 5-39 pixel placement 5-24, 5-27 command 5-27 HP-GL - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 282
placement) command 7-20, 7-22 PP command, HP-GL/2 7-22 primitives A-14 print model 34 compression, coding efficiency 6-23 compression, TIFF Encoding 6-21 data block 6-28 data compressions/reduction 6- 6-10 Raster Y Offset command 6-19 repeating row 6-27 resolution 6-17 run-length data compression - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 283
-defined patterns 5-33 V Vertical Rectangle Size command decipoints 5-47 PCL Units 5-47 viewing illuminant A-2 viewing illuminant command D-18 W -defined dithers D-6 user-defined pattern assign ID 5-29 base pattern 5-33 data 5-38, 5-39 define pattern command 5-38 deleting 5-44 descriptor format ( - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 284
Index-6 EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 285
- HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manu - Page 286