DirectX SDK

Direct3DEnumPixelFormats.GetItem

The Direct3DEnumPixelFormats.GetItem method returns the description of the specified pixel format.

object.GetItem(index As Long, _ 
    pixelFormat As DDPIXELFORMAT)

Parameters

object
Object expression that resolves to a Direct3DEnumPixelFormats object.
index
The specific pixel format that you want a description for.
pixelFormat
A DDPIXELFORMAT type that describes the enumerated pixel format.

Error Codes

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