Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomCameraControl.Active Property

Toggles capturing and rendering of the camera output on the control’s surface.

#Declaration

Delphi
property Active: Boolean read; write;

#Property Value

Type
Boolean

#Remarks

Set this property to True to activate the camera control and allow it to access a specific camera registered in the Device Manager. Activating the camera control allows it to do the following:

  • Access the camera specified by the DeviceIndex property.

  • Acquire a lock of the camera to capture and render its output. Once locked, the camera is inaccessible for other applications, including other instances of the same application;

  • Initiate capturing and rendering of the camera output.

  • Continuously render output frames on the surface until the camera control is paused, stopped, or made inactive. Note that the camera control renders the output only at runtime to avoid unnecessary camera lock-ups.

Use the State property to determine the camera control’s current state. To respond to any changes, handle the OnStateChanged event.

#Default Value

The Active property’s default value is False.

See Also