Original Post
I'm trying to load and draw a bitmap using DirectX 9 but am having problems. I can get the image to load and draw the image to the screen but the image is stretched and bigger than the area that I am trying to draw to. Below is the code I am using to load and draw the image. void LoadImage(IMAGE *pImage,LPCTSTR file) { D3DXCreateTextureFromFileEx(gd3ddev,file,D3DX_DEFAULT,D3DX_DEFAULT,D3DX_DEFAULT, NULL,D3DFMT_A8R8G8B8,D3DPOOL_MANAGED,D3DX_DEFAULT,D3DX_DEFAULT, D3DCOLOR_XRGB(255,0,255),NULL,NULL,&pImage->tex); return; } void DrawImage(IMAGE *pImage,float x,float y, float z) { D3DXVECTOR3 position(x,y,z); gd3dspt->Draw(pImage->tex,NULL,NULL,&position,D3DCOLOR_XRGB(255,255,255)); return; } I want to load the whole image which is a 1280x800 bitmap and print that image to the screen. D3D is set up to full screen at a 1280x800 resolution but the bitmap is drawn huge so only part of the left hand corner of the image is seen. Anyone have any advise?