ICogImage MethodsCognex VisionPro 9.7

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
See Also