Interface that describes a rectangular array of pixels.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 80.0.0.0
Syntax
The ICogImage type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| Allocate | Initialize the image with (undefined) pixel data of the given width and height. This method may not be called more than once. | |
| CopyBase | Create a copy of this image in a new image. Pixels may be shared between images by specifying CopyMode=cogImageCopyModeSharePixels. | |
| GetTransform | 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. | |
| ResumeAndRaiseChangedEvent |
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.) | |
| ScaleImage | 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. | |
| SuspendChangedEvent |
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.) | |
| ToBitmap | Returns a 24-bit RGB Windows bitmap created from this image, regardless of the type of this image. |
Properties
| Name | Description | |
|---|---|---|
| Allocated | Whether there is pixel data associated with this image. | |
| ChangedEventSuspended |
Indicates if the raising of the Changed event has been suspended.
(Inherited from ICogChangedEvent.) | |
| CoordinateSpaceTree | Returns/sets the tree of all named coordinate spaces for this image. The tree provides advanced functions for managing coordinate spaces. | |
| Height | Height of the image. | |
| PixelFromRootTransform | Transformation that maps points into pixel space ("#") from the root space ("@"). | |
| SelectedSpaceName | Returns/sets the name of the coordinate space to be used by tools which process this image. | |
| StateFlags |
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.) | |
| Width | Width of the image. |
Events
| Name | Description | |
|---|---|---|
| Changed |
This event is raised when one or more parts of the object's state may
have changed.
(Inherited from ICogChangedEvent.) |
Remarks
Interface that describes a rectangular array of pixels.
See Also