Microsoft DirectX 8.1 (C++)

CImageSample Class

CImageSample Class Hierarchy

The CImageSample class inherits from CMediaSample and overrides the constructor to initialize itself with the DIBDATA structure. When the renderer is using its own allocator, it will use this class for its samples. It can therefore obtain the DIBSECTION structure information it requires to obtain the HBITMAP data it renders.

Protected Data Members

m_bInit Flag to determine if the DIBSECTION structure information is initialized.
m_DibData Information about the sample's DIBSECTION structure.

Member Functions

CImageSample Constructs a CImageSample object.
GetDIBData Retrieves the DIBSECTION structure information stored for the sample.
SetDIBData Sets the DIBSECTION information stored for the sample.