Microsoft DirectX 8.1 (C++)

CDrawImage::NotifyMediaType

The NotifyMediaType method provides the image format for the draw object.

Syntax

void NotifyMediaType(
    CMediaType *pMediaType
);

Parameters

pMediaType

Pointer to the media type.

Return Value

No return value.

Remarks

The draw object must know the format of the images it will be drawing. For the most part, this is so it can retrieve the palette when the images are 8-bit palettized. A filter using the draw class will usually call this just after completing a connection.

The function does not take a copy of the media type but just stores a pointer (for performance reasons). Therefore, the caller should ensure that the media type is not destroyed inadvertently.

See Also