IC Imaging Control C++

OverlayBitmap::endPaint Method

OverlayBitmap::endPaint Method

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

true on success, false otherwise.


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

Get in touch with us

About The Imaging Source

Established in 1990, The Imaging Source is one of the leading manufacturers of industrial cameras, frame grabbers and video converters for production automation, quality assurance, logistics, medicine, science and security.

Our comprehensive range of cameras with USB 3.1, USB 3.0, USB 2.0, GigE interfaces and other innovative machine vision products are renowned for their high quality and ability to meet the performance requirements of demanding applications.

Automated Imaging Association ISO 9001:2015 certified

Contact us