Microsoft DirectX 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.

See Also