Microsoft DirectX 8.1 (C++) |
The DrawImage method draws an image.
Syntax
BOOL DrawImage(
IMediaSample *pMediaSample
);
Parameters
pMediaSample
Pointer to the sample to draw.
Return Value
No return value.
Remarks
If the samples have been allocated by a CImageAllocator object (or a derived class), the images that the samples contain will be drawn using the Microsoft Win32 BitBlt or StretchBlt function. If not, they will be drawn using SetDIBitsToDevice or StretchDIBits. The client must call CDrawImage::NotifyAllocator prior to calling this member function to inform the CDrawImage object how the image buffers have been allocated. The object is informed each time the source or destination changes (through its CDrawImage::SetSourceRect and CDrawImage::SetTargetRect member functions). It uses this information to determine if it needs to stretch the image during the draw.
See Also