d3dx9: Implement the pixel format conversion in D3DXSaveSurfaceToFileW.