|
THPDFPage.SetGrayColor
|
Top Previous Next |
|
Sets fill and stroke colors.
Delphi syntax: procedure SetGrayColor ( GrayColor: Extended );
C++ syntax: void __fastcall SetGrayColor ( Extended GrayColor);
Description: Applies the same precise DeviceGray component to stroke and fill; small nonzero values are not rounded to two decimal places Non-finite input raises EConvertError before changing either color Call SetGrayColor sets fill and stroke colors value. This function is equivalent to call two function SetGrayFillColor and SetGrayStrokeColor with same value. GrayColor value from 0( black ) to 1( white ).
Code Example
See also: SetGrayFillColor, SetGrayStrokeColor, SetRGBColor, SetRGBFillColor, SetRGBStrokeColor.
|