Microsoft DirectX 8.1 (Visual Basic)

Direct3DDevice8.GetGammaRamp

Retrieves the gamma correction ramp for the swap chain.

object.GetGammaRamp( _ 
    Ramp As D3DGAMMARAMP)

Parts

object
Object expression that resolves to a Direct3DDevice8 object.
Ramp
An application-supplied D3DGAMMARAMP type to fill with the gamma correction ramp.

Error Codes

If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL.

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.

See Also

Direct3DDevice8.SetGammaRamp, Direct3D8.CreateDevice