Home COM GDI+ WebBrowser Data Access

IDXGradient Interface

 

CLSID

{C6365470-F667-11D1-9067-00C04FD9189D}

IID_IDXGradient

{B2024B51-EE77-11D1-9066-00C04FD9189D}

 

 

The IDXGradient interface produces gradient images that fade gradually from one color to another.

Remarks

This interface is used like a transform that has no input surfaces and produces one DXSurface object as output. The output surface is determined by setting a start color, end color, and choosing either a horizontal or vertical gradient.

This interface inherits from the IDXTScaleOutput interface, which enables you to set the output size of the gradient surface.

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

IDXTScaleOutput Members

Description

SetOutputSize

Sets the size of the scaled transform output.

IDXGradient Members

Description

SetGradient

Sets the parameters used to produce the gradient surface.

GetOutputSize

Retrieves the size of the output surface.

   

SetGradient

 

FUNCTION IDXGradient_SetGradient ( _
  BYVAL
pthis AS DWORD PTR _

, BYVAL StartColor AS DXSAMPLE _

, BYVAL EndColor AS DXSAMPLE _

, BYVAL bHorizontal AS LONG _

  ) AS LONG

  LOCAL
HRESULT AS LONG
  CALL DWORD
@@pthis[4] USING IDXGradient_SetGradient (pthis, StartColor, EndColor, bHorizontal) TO HRESULT
  FUNCTION =
HRESULT

END FUNCTION
 

 

GetOutputSize

 

FUNCTION IDXGradient_GetOutputSize ( _
  BYVAL
pthis AS DWORD PTR _

, BYREF pOutSize AS apiSIZE _

  ) AS LONG

  LOCAL
HRESULT AS LONG
  CALL DWORD @@pthis[5] USING
IDXGradient_GetOutputSize (pthis, pOutSize) TO HRESULT
  FUNCTION =
HRESULT

END FUNCTION
 

 

Page last updated on Monday, 03 April 2006 19:47:12 +0200