Global Index (short | long) | Local contents | Local Index (short | long)
bool = blt( pj, h )
BLT Returns FALSE if Lines and Text objects in Figure should be printed in black. Looks at settings of DriverColor and DriverColorSet of PrintJob object and the PrintTemplate object, if any, in the Figure.
This function is called by | |
---|---|
function bool = blt( pj, h ) % Copyright 1984-2000 The MathWorks, Inc. % $Revision: 1.2 $ $Date: 2000/06/01 02:54:05 $ %DriverColorSet was turned to TRUE iff there was a device cmd line argument %If there was a cmd line device argument we use the DriverColor resulting from it %otherwise we look for a PrintTemplate object in the Figure %If there is one we return its DriverColor boolean value. if pj.DriverColorSet bool = pj.DriverColor; else pt = get(h,'PrintTemplate'); if isempty( pt ) if strcmp( computer, 'PCWIN' ) & strncmp( pj.Driver, 'win', 3 ) %PC driver properties' dialog allows users to set a color option. %PC code will call NODITHER if required. bool = 1; else %Use setting based on default driver from PRINTOPT. bool = pj.DriverColor; end else bool = pt.DriverColor; end end