IColor::SetRGB Method
From PDF XChange PDF SDK
m (Automatic page editing by robot) |
|||
(2 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
[[Category:Editor]] | [[Category:Editor]] | ||
{{#customTitle:IColor::SetRGB Method}} | {{#customTitle:IColor::SetRGB Method}} | ||
− | {{#parentPage:PXV:IColor#Methods|SetRGB | + | {{#parentPage:PXV:IColor#Methods|SetRGB|method}} |
− | + | ||
{{ToReview}} | {{ToReview}} | ||
− | + | Sets the RGB value of the current color. | |
== Syntax == | == Syntax == | ||
Line 15: | Line 14: | ||
== Parameters == | == Parameters == | ||
;nR | ;nR | ||
− | :[in] Value of float. | + | :[in] Value of float containing the Red value of the color. Can vary between '''0''' and '''1'''. |
;nG | ;nG | ||
− | :[in] Value of float. | + | :[in] Value of float containing the Green value of the color. Can vary between '''0''' and '''1'''. |
;nB | ;nB | ||
− | :[in] Value of float. | + | :[in] Value of float containing the Blue value of the color. Can vary between '''0''' and '''1'''. |
== Return Value == | == Return Value == | ||
Line 25: | Line 24: | ||
== See Also == | == See Also == | ||
− | [[PXV:IColor|IColor]] | + | [[PXV:IColor|IColor]] |
Latest revision as of 03:20, 16 March 2017
Sets the RGB value of the current color.
Syntax
HRESULT SetRGB([in] float nR, [in] float nG, [in] float nB);
Parameters
- nR
- [in] Value of float containing the Red value of the color. Can vary between 0 and 1.
- nG
- [in] Value of float containing the Green value of the color. Can vary between 0 and 1.
- nB
- [in] Value of float containing the Blue value of the color. Can vary between 0 and 1.
Return Value
Returns S_OK if operation was successful or error code in other cases.