TRVCamera.FocusType, FocusDistance

<< Click to display table of contents >>

TRVCamera.FocusType, FocusDistance

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

type

  // defined in MRVType unit

  TRVCamFocus = (rvcfFocusAuto, rvcfFocusNear, rvcfFocusFar);

property FocusType: TRVCamFocus;

property FocusDistance: Integer;

For IP cameras

These properties are supported for Panasonic cameras (see SearchCamera). These are write-only properties: RVMedia cannot read these properties from the camera, but can assign them.

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

For local web cameras

FocusType is not supported

FocusDistance can be get and set (for cameras that support it). Minimum and maximum values depend on the driver.

 

Default values

FocusType: rvcfFocusAuto

FocusDistance: 1