ICogImage InterfaceCognex VisionPro 9.8
Interface that describes a rectangular array of pixels.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 75.1.0.0
Syntax

public interface ICogImage : ICogChangedEvent

The ICogImage type exposes the following members.

Methods

  NameDescription
Public methodAllocate
Initialize the image with (undefined) pixel data of the given width and height. This method may not be called more than once.
Public methodCopyBase
Create a copy of this image in a new image. Pixels may be shared between images by specifying CopyMode=cogImageCopyModeSharePixels.
Public methodGetTransform
Returns a transform that maps points from the 'From' coordinate space to the 'To' space. The special string "." is accepted as an alias for the SelectedSpaceName of this image.
Public methodResumeAndRaiseChangedEvent
Re-enables raising of the Changed event after SuspendChangedEvent has been called, and raises the Changed event if the ChangedEventSuspended count is reduced to zero and any changes were made while events were suspended. Must be called once for each call to SuspendChangedEvent.
(Inherited from ICogChangedEvent.)
Public methodScaleImage
Creates a scaled version of this image. The dimensions of the returned image (in pixels) are specified by the width and height arguments. The scaling is performed using bilinear interpolation.
Public methodSuspendChangedEvent
Temporarily suspends the raising of the Changed event. May be called more than once, and a corresponding call to ResumeAndRaiseChangedEvent must be made for each call to SuspendChangedEvent.
(Inherited from ICogChangedEvent.)
Public methodToBitmap
Returns a 24-bit RGB Windows bitmap created from this image, regardless of the type of this image.
Top
Properties

  NameDescription
Public propertyAllocated
Whether there is pixel data associated with this image.
Public propertyChangedEventSuspended
Indicates if the raising of the Changed event has been suspended.
(Inherited from ICogChangedEvent.)
Public propertyCoordinateSpaceTree
Returns/sets the tree of all named coordinate spaces for this image. The tree provides advanced functions for managing coordinate spaces.
Public propertyHeight
Height of the image.
Public propertyPixelFromRootTransform
Transformation that maps points into pixel space ("#") from the root space ("@").
Public propertySelectedSpaceName
Returns/sets the name of the coordinate space to be used by tools which process this image.
Public propertyStateFlags
Returns the complete set of state flags supported on this object. The flags may be indexed by name as shown in the following C# code snippet: if (changedObject.StateFlags["Color"] & eventArgs.StateFlags) { ... }
(Inherited from ICogChangedEvent.)
Public propertyWidth
Width of the image.
Top
Events

  NameDescription
Public eventChanged
This event is raised when one or more parts of the object's state may have changed.
(Inherited from ICogChangedEvent.)
Top
Remarks

Interface that describes a rectangular array of pixels.

See Also