GetPixelFormat method
Retrieves the pixel format of the surface.
Syntax
HRESULT retVal = object.GetPixelFormat(pFormatID, pSampleFormatEnum);
Parameters
- pFormatID [out]
-
Type: GUID
Pointer to the pixel format's GUID.
- pSampleFormatEnum [out]
-
Type: DXSAMPLEFORMATENUM
Pointer to one of the Microsoft DirectX Transform–supported pixel formats from the DXSAMPLEFORMATENUM enumeration.
Remarks
Either pointer can be NULL if you do not want the information. If you override this method, you must check for NULL pointers in both parameters.
See also
- Reference
- DXSAMPLEFORMATENUM
- Conceptual
- Supported Pixel Formats
Show: