ICImagingControl.LiveDisplayWidth Property

Returns or sets the width of the video display window.
Syntax:
Public LiveDisplayWidth As Long
Remarks:

The LiveDisplayWidth property is used to set a new width for the display window of the live video. If LiveDisplayWidth is set to a value different from the video format's width, the video image is distorted.

If the LiveDisplayHeight and the LiveDisplayWidth properties are changed, but the video image's ratio is preserved, the live video appears to be zoomed in or out. With these properties, the live video image can be fitted into IC Imaging Control's window.

Passing a value to LiveDisplayWidth takes only an effect, if the LiveDisplayDefault property was set to False. If the LiveDisplayDefault property is set to True, the LiveDisplayWidth property's value is reset to the video formats width.

The LiveDisplayWidth property's unit is pixel.

Sample:

This example demonstrates how to fit the live video display in IC Imaging Control's window.

' Set the used scale mode to pixel.
ScaleMode = 3
With ICImagingControl1
    ' Disable the the live display's default values.
    .LiveDisplayDefault = False
    ' Set the width and height of the live video display to
    ' the width and height of IC Imaging Control. Now, the
    ' live video image fits into IC Imaging Control's window.
    .LiveDisplayHeight = .Height
    .LiveDisplayWidth = .Width

    ' Start the live video to see the result.
    .LiveStart
End With
See also: ICImagingControl, ICImagingControl.LiveDisplayDefault, ICImagingControl.LiveDisplayHeight, ICImagingControl.LiveDisplayLeft, ICImagingControl.LiveDisplayTop, ICImagingControl.LiveDisplayZoomFactor, ICImagingControl.ScrollBarsEnabled

<< ICImagingControl