OverlayBitmap::drawFrameEllipse Method

Draws the frame of an ellipse on the live video.
Syntax:
bool drawFrameEllipse( COLORREF color, const RECT& rect );
Parameter Description
color

Specifies the color of the ellipse. The color can be specified with the RGB macro.

rect

Specifies the surrounding rectangle of the ellipse in pixel coordinates. A CRect object or a RECT structure can be passed for this parameter.

Return value:

true on success, false otherwise.

Information:

Introduced in IC Imaging Control 2.0

Sample:

This example demonstrates how draw two ellipses on the live video stream.

smart_ptr<DShowLib::OverlayBitmap> pOverlayBitmap;
 
pOverlayBitmap = m_Grabber.getOverlay();
if( pOverlayBitmap->canRender() == true)
{
    // Make sure, the overlay is enabled.
    pOverlayBitmap->setEnable(true);
 
    // Draw a rectangle in magenta, using a CRect object.
    pOverlayBitmap->drawFrameEllipse( RGB(255,0,255),
        CRect(100,50,50,25));
 
    // Draw a rectangle in blue, using a RECT structure.
    RECT rectangle;
    rectangle.left   = 160;
    rectangle.right  = 200;
    rectangle.top    = 160;
    rectangle.bottom = 180;
    pOverlayBitmap->drawFrameEllipse( RGB(0,0,255),    rectangle);
}
See also: OverlayBitmap, OverlayBitmap::drawText, OverlayBitmap::drawLine, OverlayBitmap::drawSolidRect, OverlayBitmap::drawFrameRect, OverlayBitmap::drawSolidEllipse

<< OverlayBitmap

This site is part of The Imaging Source Network. Other sites include Company Portal, Image Processing, Astronomy Cameras, Astronomy Cameras Blog, Blog caméras d'astronomie, Astronomy Cameras Competition, TX Text Control, TX Text Control Blog and Forums.