Export (0) Print
Expand All

IDXARGBSurfaceInit::InitFromRawSurface Method

This topic documents a feature of Visual Filters and Transitions, which is deprecated as of Windows Internet Explorer 9 and obsolete as of Internet Explorer 10.

Initializes a DXSurface object from a client-created object that supports the IDXRawSurface interface.


HRESULT InitFromRawSurface(
    IDXRawSurface *pRawSurface


[in] Pointer to an IDXRawSurface interface; if NULL, the surface releases existing surface memory and becomes uninitialized.

Return Value

Returns an HRESULT value that depends on the implementation of the interface.


The IDXRawSurface interface is used by the DXSurface to obtain a pointers to the surface memory, pitch, pixel format, and color key, and a handle to a device context. Clients that need to perform operations directly on memory buffers or DIB sections can use this mechanism to create DXSurface objects that operate directly on their data.

Raw surface objects are wrappers for application-supplied pixel buffers, such as a Windows Graphics Device Interface (GDI) DIB sections or application-defined memory objects.

Community Additions

© 2015 Microsoft