TRVCamera.FocusType, FocusDistance

Top  Previous  Next

The properties control the camera focus, it the camera supports it.

type

  TRVCamFocus = (rvcfFocusAuto, rvcfFocusNear, rvcfFocusFar); // defined in MRVType unit

property FocusType: TRVCamFocus;

property FocusDistance: Integer;

FocusType:

Value

Meaning

rvcfFocusAuto

automatic focus

rvcfFocusNear

focus near

rvcfFocusFar

focus far

FocusDistance is used only if FocusType<>rvcfFocusAuto. Possible values:

Value

Meaning

1

small displacement

2

large displacement

If the camera supports these properties, their values are received from the camera when the component is connected to it, see SearchCamera.

Default values

FocusType: rvcfFocusAuto

FocusDistance: 1