Rectangle area fill commands

Important

The modern print platform is Windows' preferred means of communicating with printers. We recommend that you use Microsoft's IPP inbox class driver, along with Print Support Apps (PSA), to customize the print experience in Windows 10 and 11 for printer device development.

For more information, see Modern print platform and the Print support app design guide.

The following table lists the rectangle area fill commands. All commands are specified using command entry format.

Command Description Comments
CmdRectBlackFill Command to black fill a rectangle. Optional. If not specified, Unidrv attempts black fill by specifying the CmdRectGrayFill command with a gray percentage of MaxGrayFill.
CmdRectGrayFill Command to gray fill a rectangle (does not erase the background). Optional. If not specified, Unidrv assumes no gray fill capability. Command string typically includes the GrayPercentage variable.
CmdRectWhiteFill Command to white fill a rectangle (erases the background). Optional. If not specified, Unidrv assumes no erasing white fill. In that case, Unidrv returns failure if an application requests white fill, because gray fill cannot erase the background.
CmdSetRectHeight Command to set the rectangle height. Optional. Must be specified if CmdSetRectWidth is specified.
CmdSetRectWidth Command to set the rectangle width. Optional. Must be specified if CmdSetRectHeight is specified.