ShapeOverlayList
Delphi
function ShapeOverlayList (Shape: TShape; Add: Boolean): Boolean;
C++Builder
bool __fastcall ShapeOverlayList(Vcl::Extctrls::TShape* Shape, bool Add);
Adds/removes TShape components in the list of TShape components that are drawn over video frames when ShapeOverlayEnabled is true.
-
to add a TShape, drop a TShape component on the form (or create it dynamically at runtime), then call ShapeOverlayList (YourShapeComponent, true),
-
to remove a TShape component from the list, call ShapeOverlayList (YourShapeComponent, false),
-
the function returns true upon success.
Each TShape component in the list is drawn at its Left, Top, Width, Height coordinates if its Enabled property is true. Its Visible property can be disabled if it must not be visible on the form.
Note: to use only a single TShape component, it is possible to assign it to the ShapeOverlay property, instead of using this function.