LoadImageFromStream method
Loads an image from a stream and returns a DXSurface.
Syntax
HRESULT retVal = object.LoadImageFromStream(pStream, pDirectDraw, pDDSurfaceDesc, pFormatID, riid, ppDXSurface);
Parameters
- pStream [in]
-
Type: IStream
Pointer to the stream to use for the image load.
- pDirectDraw [in]
-
Type: IUnknown
Pointer to the DirectDraw object to use.
- pDDSurfaceDesc [in]
-
Type: const DDSURFACEDESC
Pointer to the DDSURFACEDESC structure that describes the underlying DirectDrawSurface object.
- pFormatID [in]
-
Type: const GUID
Pointer to the overriding pixel format. If NULL, the format is determined by the source data.
- riid [in]
-
Type: REFIID
Interface to return from the new surface.
- ppDXSurface [out]
-
Type: void
Address of a pointer to the new interface.
Remarks
All parameters except pStream are identical to the parameters of the IDXSurfaceFactory::LoadImage method.
For more information about using the IStream interface, consult a Component Object Model (COM) reference.
See also
Show: