CogDisplay UserPixelTree Property Cognex VisionPro 9.20
Returns a coordinate space tree containing coordinate spaces associated with this display control.

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

public virtual CogCoordinateSpaceTree UserPixelTree { get; }

Property Value

Type: CogCoordinateSpaceTree
The coordinate space tree.
Exceptions

ExceptionCondition
AxHost InvalidActiveXStateException Thrown when the display control is invalid.
Remarks

The root space for this tree is the screen pixels used by this display control, with the origin in the upper-left corner, the positive x-axis extending to the right, and the positive y-axis extending down. You can use this coordinate space tree to make it easier to create display annotations that are independent of the image being displayed in the control. Unlike the UserDisplayTree space, this space reflects the effect of any pan and zoom settings for the display.

See Also