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: IStreamPointer to the stream to use for the image load.
pDirectDraw [in]
Type: IUnknownPointer to the DirectDraw object to use.
pDDSurfaceDesc [in]
Type: const DDSURFACEDESCPointer to the DDSURFACEDESC structure that describes the underlying DirectDrawSurface object.
pFormatID [in]
Type: const GUIDPointer to the overriding pixel format. If NULL, the format is determined by the source data.
riid [in]
Type: REFIIDInterface to return from the new surface.
ppDXSurface [out]
Type: voidAddress 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.