CImageAllocator::CreateDIB
Microsoft DirectShow 9.0 |
CImageAllocator::CreateDIB
The CreateDIB method creates a GDI device-independent bitmap (DIB). The DIB is allocated in a shared mempory block, which eliminates a copy operation when the owning filter blits the image.
Syntax
HRESULT CreateDIB( LONG InSize, DIBDATA &DibData );
Parameters
InSize
Size of the bitmap.
DibData
Reference to a DIBDATA structure. The method fills in this structure with information about the DIB.
Return Value
Returns S_OK if successful, or an error code otherwise.
Requirements
** Header:** Declared in Winutil.h; include Streams.h.
** Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).
See Also