TdxCustomCameraControl Class
Serves as the base class for classes that implement camera controls.
Declaration
TdxCustomCameraControl = class(
TcxControl,
IdxSkinSupport
)
Remarks
Camera controls allow you to capture a video or images from a built-in/connected webcam or from devices with front- and rear-facing cameras. The camera control accesses a specific camera to render its output on the control’s surface.
The camera control allows you to select the required camera from those registered in the Device Manager and provides a runtime capability to switch between the registered cameras and their resolutions using the camera control’s Settings popup menu.
The TdxCustomCameraControl class implements the essential functionality associated with camera controls. It extends its ancestor class with members that allow you to do the following:
Specify the camera used for image/video capturing and obtain its name (DeviceIndex and DeviceName).
Control rendering of the camera output on the camera control’s surface (Active, Pause, Play, and Stop).
Enumerate supported camera resolutions and select one for output rendering (Resolutions and ResolutionIndex).
Scale rendered images (FitMode).
Capture the currently rendered image and access it (Capture and CapturedBitmap).
Determine the control’s current state and respond to any changes (State and OnStateChanged).
Enable the Gear button providing end-user access to the Settings popup menu and programmatically invoke this menu (ShowSettingsButton and ShowSettingsToolbar).
In addition, the TdxCustomCameraControl class overrides some default property values to underpin the camera control’s design.
The TdxCustomCameraControl class implements all the functionality needed by its descendant, TdxCameraControl, which primarily publishes inherited properties and events.