IColor::SetGray Method
From PDF XChange PDF SDK
(Automatic page editing by robot) |
|||
(9 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | __NOTOC__ | ||
[[Category:Editor]] | [[Category:Editor]] | ||
{{#customTitle:IColor::SetGray Method}} | {{#customTitle:IColor::SetGray Method}} | ||
+ | {{#parentPage:PXV:IColor#Methods|SetGray|method}} | ||
+ | {{ToReview}} | ||
− | + | Sets the shade of gray value of the current color. The value can be between '''0''' (black) and '''1''' (white). | |
== Syntax == | == Syntax == | ||
− | <pre class="brush:cpp;gutter:false">HRESULT SetGray([in] float nVal);</pre> | + | <pre class="brush:cpp;gutter:false">HRESULT SetGray([in] float nVal);</pre> |
== Parameters == | == Parameters == | ||
− | ; | + | ;nVal |
:[in] Value of float. | :[in] Value of float. | ||
Line 15: | Line 18: | ||
== See Also == | == See Also == | ||
− | + | [[PXV:IColor|IColor]] |
Latest revision as of 03:15, 16 March 2017
Sets the shade of gray value of the current color. The value can be between 0 (black) and 1 (white).
Syntax
HRESULT SetGray([in] float nVal);
Parameters
- nVal
- [in] Value of float.
Return Value
Returns S_OK if operation was successful or error code in other cases.