Example: stock market

Hewlett-Packard PCL 5c Color Programming Quick Reference

Edition 2, November 2000 Hewlett-Packard Company Confidential1Do Not CopyHewlett-PackardPCL 5c ColorProgramming Quick Referencefor theHP Color LaserJet 4500, 4550, 8500, and 8550 printersDeveloper Technology ServicesThird Party Developer ProgramEdition 2, November 2000 Hewlett-Packard Company Confidential2Do Not CopyNoticeHewlett- packard makes no warranty of any kind with regard to this material, including, but not limited to,the implied warranties of merchantability and fitness for a particular purpose. Hewlett-Packard shall not beliable for errors contained herein or for incidental consequential damages in connection with the furnishing,performance, or use of this document contains proprietary information that is protected by copyright. All rights are reserved. Nopart of this document may be photocopied, reproduced, or translated without prior written consent ofHewlett- packard information contained in this document is subject to change without notice. Copyright 2000 Hewlett-Packard HistoryThis manual was created using Microsoft Word 97 for Windows in the November 2000 TrademarksPCL is a registered trademark of Hewlett-Packard 2, November 2000 Hewlett-Packard Company Confidential3Do Not CopyTable of 2 Printing 2 Trademarks.

Edition 2, November 2000 Hewlett-Packard Company Confidential 6 Do Not Copy About This Guide This guide provides a quick reference view of programming with PCL 5c in color on HP Color LaserJet

Tags:

  Guide, Packard, Programming, Reference, Confidential, Quick, Color, Quick reference, Packard pcl 5c color programming quick reference

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Transcription of Hewlett-Packard PCL 5c Color Programming Quick Reference

1 Edition 2, November 2000 Hewlett-Packard Company Confidential1Do Not CopyHewlett-PackardPCL 5c ColorProgramming Quick Referencefor theHP Color LaserJet 4500, 4550, 8500, and 8550 printersDeveloper Technology ServicesThird Party Developer ProgramEdition 2, November 2000 Hewlett-Packard Company Confidential2Do Not CopyNoticeHewlett- packard makes no warranty of any kind with regard to this material, including, but not limited to,the implied warranties of merchantability and fitness for a particular purpose. Hewlett-Packard shall not beliable for errors contained herein or for incidental consequential damages in connection with the furnishing,performance, or use of this document contains proprietary information that is protected by copyright. All rights are reserved. Nopart of this document may be photocopied, reproduced, or translated without prior written consent ofHewlett- packard information contained in this document is subject to change without notice. Copyright 2000 Hewlett-Packard HistoryThis manual was created using Microsoft Word 97 for Windows in the November 2000 TrademarksPCL is a registered trademark of Hewlett-Packard 2, November 2000 Hewlett-Packard Company Confidential3Do Not CopyTable of 2 Printing 2 Trademarks.

2 2 About This 6 Related 6 Color 7 Color Models .. 7 Black Generation .. 8 Four Color Printing 9 Color Management and sRGB .. 10 Color Calibration .. 11 Color 11 PCL 5c 12 Developer 12 Job 12 Media .. 12 High-level Objects .. 12 Fonts .. 12 Programmable Color .. 12 Optimizing .. 13 PCL 5c Premises .. 13 Color Spaces .. 14 Resetting the 14 Palettes .. 15 Simple Color 15 CID Color Palettes (PCL Imaging Color Mode).. 16HP-GL/2 Palettes .. 16 Saving Palettes .. 16 Push / Pop Palette Esc*p# 17 Palette Management by 17 Select Palette Esc&p# 18 Palette Control ID Esc&p#I .. 18 Palette Control Esc&p#C .. 19 Programming Palettes .. 19 Edition 2, November 2000 Hewlett-Packard Company Confidential4Do Not CopyColor Component One Esc*v# 20 Color Component Two Esc*v#B .. 20 Color Component Three Esc* v # C .. 20 Assign Color Index Esc* v # I .. 20 Color Modes .. 20 Black and White Mode .. 21 Simple Color 21 PCL Imaging Mode (CID Command).. 22 Configure Image Data (CID) Command.

3 22 CID Byte 0, Color Space .. 22 CID Byte 1, Pixel Encoding Mode .. 22 CID Byte 2, Bits per Index (Palette Size) .. 24 CID Bytes 3 - 5, Bits per Color Component .. 24 CID Device RGB and sRGB Color Palettes (Default).. 25 CID Device CMY Color Palettes (Default) .. 25HP-GL/2 Imaging Mode .. 25 Raster 26 PCL Raster Features .. 26 Well-behaved Raster .. 26 Healing 26 Committing the Image to the Graphics Engine ..27 Color PCL 27 Color Specifications: Indexed or 27 Filling the Raster Area .. 27 Missing Rows .. 27 Incomplete Rows .. 28 Use-Case Analysis .. 28 Case 1: well-formed raster with a single image on the page .. 28 Case 2: Well formed raster with multiple, small images on the page .. 28 Case 3: Lazy raster with a single image on a 28 Case 4: Lazy raster with multiple, small images on a 28 Case 5: Raster Prologue used with unordered transfers .. 29 Raster Graphics 29 Raster Mode .. 29 Raster Data Transfer .. 30 Raster Compression .. 31 Edition 2, November 2000 Hewlett-Packard Company Confidential5Do Not CopyRaster Scaling.

4 31 Raster Printing Command 31 Foreground 32 Foreground Color Esc*v#S .. 32 Render 33 Monochrome Print Mode/Finish 33 Driver 34 The Color Print Model .. 34 Logical 34 Transparency Modes .. 35 Pixel 35 Patterns .. 35 User-Defined Patterns .. 36 Rectangle Area Fills (Rules) .. 36 Vector Graphics .. 37 PCL, HP-GL/2 Context 37 Picture Presentation Commands .. 38 Using Macros with 38 Asian Font Support .. 38 New Asian Paper Sizes 39 Programming 39 Printing with Color Text .. 40 Printing with Color PCL Rules .. 41 Printing with Hatch Patterns on PCL Rules .. 42 Printing with Color Text and Hatch Patterns .. 44 Printing with Color Text and Shading 46 Printing with Color Text and User-Defined Patterns .. 48 Printing with Color Raster .. 50 Printing a Checkerboard with a Four Color Palette .. 61 Printing a Checkerboard Raster Pattern .. 79 Edition 2, November 2000 Hewlett-Packard Company Confidential6Do Not CopyAbout This GuideThis guide provides a Quick Reference view of Programming with PCL 5c in Color on HP Color LaserJet4500, 4550, 8500, and 8550 printers.

5 It starts out by providing a brief overview of Color as it relates to theHP Color LaserJet printers. From there, it briefly goes over the key PCL 5c commands that relate toprogramming Color in PCL 5c for the HP Color LaserJet 4500, 4550, 8500, and 8550 printers. Then all ofthis information is pulled together in brief Programming examples that relate the commands to actualworking more in-depth information, see the PCL Technical Reference manuals or Reference the HP LaserJetDeveloper s Web Site for additional technical information. This site is located Documentation is listed under "LaserJet -- "Esc" in this document refers to the ASCII escape character which identifies the subsequent stringof characters as a print Documentation HP PCL 5 Printer Language Technical Reference Manual HP PCL 5 Comparison guide HP PCL 5 Color Technical Reference guide HP Printer Job Language Technical Reference Manual HP Color LaserJet 8550 Developer s Quick Reference guide -- zip file containing copies of the PCL sample were developed using the and which is available on the HPLaserJet Developer s Web Site at under "LaserJet --Monochrome.

6 "Edition 2, November 2000 Hewlett-Packard Company Confidential7Do Not CopyColor OverviewColor ModelsColor models (or Color spaces) are different ways to describe how Color is created or perceived. These maybe three or four dimensional whose dimensions or components represent intensity values. There are twomajor Color models that are important to digital imaging: RGB and CMYK. RGB and CMYK arecomplementary Color spaces. RGB (Red, Green, Blue) is a three-dimensional model that corresponds tothe way the human eye sees Color , that is, with red, green, and blue "cones." It is the Color space thatdescribes the Color capabilities of photo film and display monitors. RGB is also described as additive andtransmitted. Additive refers to the fact that the three primary colors in RGB at 100% (255, 255, 255)combine to create white, the sum of all colors. The transmitted quality of RGB is best exemplified by acolor monitor, which creates Color when white light strikes the red, green, and blue phosphors on thescreen.

7 RGB is capable of creating millions of colors. RGB values are described using numbers where(0,0,0) is black. When any two of the RGB colors combine, they create one of the secondary colors thatmake up the CMK Color model (Cyan, Magenta, and Yellow). The secondary colors produced by the RGBprimaries are also called subtractive primaries when used in Reference to the CMY Color is associated with printed inks or toners on a page. CMY values are described as percentages where(100, 100, 100) represents black. This model is described as subtractive (or absorptive) and reflective. Itworks the opposite of RGB. When a light source strikes an area of printed magenta toner (ink), all colorsare absorbed except the magenta wavelength, which is reflected to the viewer's eye. The Color of any partof an image, therefore, results from the frequency of light it reflects and the light-absorbing properties ofthe toner (or inks) and media. In a subtractive model, a white surface can be thought of as reflecting allwavelengths of visible light.

8 Likewise, a black surface (100% of CMY) absorbs all of them, whereas agreen surface (combination of Cyan and Yellow) absorbs (subtracts) all but the green combination of CMY at 100% (100,100,100) in theory creates black, but in practice it creates a muddybrown due to limitations of toner (and ink) secondaries. To resolve this, a pure blacK fourth toner is addedin order to produce black on a printed page. This results in sharper text and lines using black only, betteroverall contrast within photographs, better detail and depth in shadow tones, and the ability to replace threecolor toners with black when printing black only text and images. The letter "K" is used for black to avoidconfusion with Blue and because the black component is always considered the "Key" to a set of to the colorants commonly used today, CMYK (a four-dimensional model) has a more limited gamut(or range of colors) compared to RGB, with a range of only tens of thousands of colors. In fact, the gamut,or range of colors available on a particular device, decreases as you move from the colors in real life toanalog film to a digital scanner to a printer.

9 The following graphic compares the Color gamut acrossdevices. The outermost area within the boundaries of the horseshoe shape represents all the colorsperceivable by the human visual system. The triangle represents the range of colors available on a colormonitor and the innermost Color area represents the gamut of a Color printer. Values on this chart representthe x and y chromaticities (a measure of the combination of both hue and saturation in Color produced bylights).Edition 2, November 2000 Hewlett-Packard Company Confidential8Do Not CopyFactors that limit gamut include the following: Subtractive versus additive qualities of CMY versus RGB Opaqueness of toner (or ink) Number of process colors Hue, lightness, and chroma (relative colorfulness) in the pigments of the with gamma may show up as dark, washed-out, bleached-out, or poor contrasting areas GenerationWhen converting an RGB or CMY image to CMYK Color mode, black generation refers to the values thatare generated for the black toner which replaces certain amounts of the cyan, magenta, and yellow night scene in a city will require more black to keep the shadows dark and crisp.

10 A bright and colorfulimage will need little or no black to avoid neutralizing the colors. Gray components may use CMY, Konly, or CMYK to create the gray images. In a simple example, where cyan is the complement of red,magenta the complement of green, and yellow the complement of blue, there is one and only one unique setof CMY values for any given set of RGB values. Therefore, converting a Color from RGB to the CMYmodel is fairly straight forward. However, things are more complicated when black and real worldcolorants are considered. A specific shade of purple, for example, may contain anywhere from 10% to40% black, with the other process colors adjusted accordingly. Thus, for a given set of RGB values, therecan be an infinite number of possible CMYK values, resulting in a very complex calculation. In addition,the actual cyan, magenta, and yellow toners are not exact complements of a typical monitor red, green, andblue. These differences must also be compensated for.


Related search queries