SetFillColor method

Sets the surface fill color.


HRESULT retVal = object.SetFillColor(Color);


  • Color [in]
    Type: DXSAMPLE

    DXSAMPLE structure that contains the surface fill color. Setting a value of zero clears the previous color value.


The alpha value of the fill color is used and must be set to 255 for a solid fill color. Any fill color that has an alpha value of zero is interpreted without a fill color.

Calling IDXSurfaceModifier::SetFillColor before or after IDXSurfaceModifier::SetBackground has no effect on the resulting image.

See also