DirectX SDK |
The DirectDraw7.CreateSurfaceFromFile method creates a DirectDrawSurface7 object for this DirectDraw object and attaches the specified bitmap image to the DirectDrawSurface object.
object.CreateSurfaceFromFile( _ file As String, _ dd As DDSURFACEDESC2) As DirectDrawSurface7
If the method succeeds, it returns a DirectDrawSurface7 object.
If the method fails, it raises an error, and Err.Number can be set to one of the following values:
If you are using 256 colors, set the display mode and the palette before you call this method to display correct palette information.