Microsoft DirectX 9.0 |
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.
See Also