DirectX SDK

DirectX7.ColorGetAlpha

The DirectX7.ColorGetAlpha method retrieves the alpha component of a color.

object.ColorGetAlpha(color As Long) As Single

Parameters

object
Object expression that resolves to a DirectX7 object.
color
Color from which the alpha component is retrieved. A value between 0 and 255.

Return Values

If the method succeeds, the alpha value is returned if successful, or zero otherwise.

Error Codes

If the method fails, an error is raised and Err.Number is set.

See Also

DirectX7.ColorGetBlue, DirectX7.ColorGetGreen, DirectX7.ColorGetRed