OverlayBitmap::endPaint Method

Releases the overlay bitmap from the internal device context.
Syntax:
bool endPaint() const;
Return value:

true on success, false otherwise.

Remarks:

If an application has called beginPaint, it must call OverlayBitmap::endPaint after all graphics operation have been completed. OverlayBitmap::endPaint deletes the device context (HDC), that has been created in beginPaint.

All graphics operations that are enclosed in a beginPaintOverlayBitmap::endPaint sequence will become visible on the live video after a call to endPaint. Only after a call to OverlayBitmap::endPaint, the new created graphics are displayed.

After endPaint has been called, a call to OverlayBitmap::getDC returns NULL and an exception is thrown.

See also: OverlayBitmap, OverlayBitmap::beginPaint, OverlayBitmap::getDC

<< OverlayBitmap