   Texture Size
  After calling D3DXCreateTextureFromFile how do I get the dimensions of the texture?   
  Call IDirect3DTexture9::GetLevelDesc, which will return a D3DSURFACE_DESC, which contains Width and Height members.;  Consider calling IDirect3DTexture9::GetLevelDesc function for level==0.It will fill-in D3DSURFACE_DESC structure, in particular, Width and Height fields.Hope it helps :)