次の方法で共有


Command Line Parameters for the Graphics Device Interface Printer Test (Windows Embedded CE 6.0)

1/6/2010

Tux can pass command line parameters to test DLLs using the -c option. Each parameter has an associated value separated by a space. Because of this space, the parameter list must always be enclosed in quotation marks. The exceptions are /DrawToPrimary and /?, which do not have associated values.

When passing in parameters, the /Driver, /Device, and /Output parameters must be present. If any are missing, the parameters will be ignored and a print dialog will appear to gather the information.

The following table shows the command line parameters for the Graphics Device Interface (GDI) Printing Test, passed in through the Tux -c option.

Parameter Description

/?

Output usage information

/DrawToPrimary

For manual verification of the images drawn to the primary

/Driver name

Specifies the driver. If this parameter is not specified, all parameters are ignored and a print dialog requests the information.

/Device name

Specifies the device. If this parameter is not specified, all parameters are ignored and a print dialog requests the information.

/Output port

Specifies the output device; for example, LPT1. If this parameter is not specified, all parameters are ignored and a print dialog requests the information.

/Copies n

Specifies the integer number of copies

/Quality specify

Specifies the print quality: Draft or High

/Color specify

Specifies the color: Monochrome or Color

/Orientation specify

Specifies the page orientation: Portrait or Landscape

/Papersize specify

Specifies the size of the paper: Letter, Legal, A4, B4, or B5

The following examples show how to run the GDI Printing Test under specific configurations.

To run this test on an image with a shell, using the print dialog to configure it:

tux -o -d gdiprint

To run this test on a headless image and give the print parameters through the command line:

tux –o –dgdiprint –c "/Driver pcl.dll /Device Inkjet /Output LPT1 /Copies 1 /Quality Draft /Color Monochome /Orientation Portrait /Papersize Letter"

See Also

Concepts

Graphics Device Interface Printer Test