Documentation
|
||||
CGapiGradientOverviewCGapiGradient is used to pre-render a gradient that can later be drawn using CGapiSurface::DrawGradient. This document has been updated for use with GapiDraw 4.0 or later.
CGapiCursor::CreateGradientThis method creates the gradient.
Parameters
|
DWORD GetNumPixels(); |
None
Returns the number of pixels in the gradient.
Returns the first color of the gradient.
HRESULT GetFirstColor(COLORREF* pFirst); |
If this method succeeds, the return value is GD_OK.
If the method fails, the return value may be one of the following return values:
GDERR_INVALIDPARAMS
GDERR_NOTINITIALIZED
Returns the last color of the gradient.
HRESULT GetLastColor(COLORREF* pLast); |
If this method succeeds, the return value is GD_OK.
If the method fails, the return value may be one of the following return values:
GDERR_INVALIDPARAMS
GDERR_NOTINITIALIZED