CogDisplay Fit Method Cognex VisionPro
Uses the current ScalingMethod to find the largest zoom value that allows the entire image to be visible in the display.

Namespace: Cognex.VisionPro.Display
Assembly: Cognex.VisionPro.Display.Controls (in Cognex.VisionPro.Display.Controls.dll) Version: 65.1.0.0 (65.1.0.0)
Syntax

public virtual void Fit(
	[OptionalAttribute] bool graphicsToo
)

Parameters

graphicsToo (Optional)
Type: System Boolean
If true, the image is scaled and panned so that all graphics are visible too. This parameter is ignored if there are no graphics or if the graphics all lie within the bounds of the image.
Exceptions

See Also