CogAcqSample SampleY Property Cognex VisionPro 9.5
Get or set Y sampling.

Namespace: Cognex.VisionPro.Implementation.Internal
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 69.0.0.0
Syntax

public virtual int SampleY { get; set; }

Property Value

Type: Int32

Implements

ICogAcqSample SampleY
Events

Event TypeReason
ICogChangedEvent Changed

Fires when the value changes.

The following state flag may be affected:

Exceptions

ExceptionCondition
ArgumentException

The new value is < 0.

Remarks

Sets or gets y-sampling. You can use subsampling to reduce the image size and may result in faster acquisitions. Subsample values specify the ration of full-frame pixels to sampled pixels. For example, setting SampleY to 8 specifies an 8:1 reduction in the number of pixels along the y-axis.

If SampleValuesLocked is True, changing this value sets SampleY to the same value.

Default Value: 1, no subsampling

See Also