VXPLib Documentation: COM
|
IVXPQuickHTML::GradientFillRect
-
Fills a rectangle area with gradient color using API function GradientFill
as described in MSDN.
-
HRESULT GradientFillRect(long hDC, OLE_COLOR StartColor, OLE_COLOR EndColor, short x1, short y1, short x2, short y2, VARIANT_BOOL bHorizontal, VARIANT_BOOL * success);
|
Parameters
-
hDC [in] - Device context handle where to draw
StartColor [in] - Starting color of the gradient
EndColor [in] - Ending color of the gradient
x1 [in] - X coordinate of the left top corner of the rectangle to be filled in
y1 [in] - Y coordinate of the left top corner of the rectangle to be filled in
x2 [in] - X coordinate of the right bottom corner of the rectangle to be filled in
y2 [in] - Y coordinate of the right bottom corner of the rectangle to be filled in
bHorizontal [in, defaultvalue(TRUE)] - Optional boolean parameter to tell whether the gradient is horizontal.
success [out, retval] - Return value: True, if succeeded, or False if failed.
Remarks
-
This is an auxiliary function not bound to QHTML documents. Its purpose is to simplify and unify usage of the gradient effect by applications
on all development platforms.
When bHorizontal is False the function draws vertical gradient.
See Also
- IVXPQuickHTML Overview
|