Share via


CImageSample::CImageSample

 
Microsoft DirectShow 9.0

CImageSample::CImageSample

Constructor method.

Syntax

  CImageSample(
  CBaseAllocator *pAllocator,
  TCHAR *pName,
  HRESULT *phr,
  LPBYTE pBuffer,
  LONG length
);

Parameters

pAllocator

Pointer to the allocator that created this sample.

pName

Ignored.

phr

Ignored.

pBuffer

Pointer to a memory buffer allocated by the caller, of size length. The buffer should contain a GDI device-independent bitmap (DIB).

length

Length of the buffer.

Remarks

The CImageAllocator class creates a DIB using a file-mapping object that is backed by the operating-system paging file. The handle to the file-mapping object is stored in the hMapping member of the m_DibData structure.

Requirements

**  Header:** Declared in Winutil.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also