d3dx10: Implement D3DX10GetImageInfoFromResource{A, W}().