Saving DirectX to file

theHollow

Newcomer
Joined
Jan 4, 2005
Messages
9
Hi there
I am currently looking for ways to save a DirectX/Direct3D surface to a file. I searched the web and found some examples that used SurfaceLoader.Save(). So far so good.

But then I tried to use it in my program, but it says that SurfaceLoader don't exist in Microsoft.DirectX.Direct3D. The same with ImageFileFormat.

I use VB.NET and DirectX 9c (dec 2004), and I begin wondering that these two classes I seek is either deleted or renamed. What do I do wrong? Can anyone help me? I have implemented both Microsoft.DirectX and Microsoft.DirectX.Direct3D in my program.

//theHollow
 
Ah, I found the answer to my problems.
I had to add a third reference:
Microsoft.DirectX.Direct3DX

//theHollow
 
Back
Top