CogImage8Grey ClassCognex VisionPro 9.8 SR1
Object that describes a rectangular array of 8 bit grey scale pixels.
Inheritance Hierarchy

System Object
  System MarshalByRefObject
    Cognex.VisionPro.Implementation CogObjectBase
      Cognex.VisionPro CogImage8Grey

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

[SerializableAttribute]
public class CogImage8Grey : CogObjectBase, 
	ICogNetInternal, IDisposable, ICogImage, ICogVisionData, ICogImage8GreyData, 
	ICloneable, ISerializable, ICogHasChanged, ICogChangedEvent

The CogImage8Grey type exposes the following members.

Constructors

  NameDescription
Public methodCogImage8Grey 
Constructs a new instance of this class.
Public methodCogImage8Grey(Bitmap)
Constructs a CogImage8Grey, copying or computing the pixels from the given bitmap.
Public methodCogImage8Grey(IntPtr)
Constructs a new instance of this class using com pointer.
Public methodCogImage8Grey(CogImage8Grey)
Constructs a new instance of this class as a deep copy of the given instance.
Public methodCogImage8Grey(Int32, Int32)
Constructs a CogImage8Grey, allocating image memory with the given width and height.
Top
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.
Protected methodClone
Returns a deep copy of this class instance. Derived classes that implement Clone should override this method; other clients who wish to clone this instance should call ICloneable.Clone. See also CogSerializer.DeepCopyObject
Public methodCopy 
Create a copy of this image in a new image. While the pixels will be copied, the CoordinateSpaceTree and PixelFromRootTransform will be shared.
Public methodCopy(CogImageCopyModeConstants)
Create a copy of this image in a new image. Pixels may be shared between images by specifying CopyMode=cogImageCopyModeSharePixels.
Public methodCopyBase
Create a copy of this image in a new image. Pixels may be shared between images by specifying CopyMode=cogImageCopyModeSharePixels.
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodDispose 
Protected methodDispose(Boolean)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize (Overrides Object Finalize .)
Public methodGet8GreyPixelMemory
Gets an object that can be used to directly access pixel memory. The caller MUST call Dispose on this object when finished with it.
Protected methodGetAttributes
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetClassName
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetComponentName
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetConverter
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetDefaultEvent
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetDefaultProperty
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetEditor
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetEvents 
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetEvents( Attribute )
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodGetObjectData
Public methodGetPixel
Pixel value at given location.
Protected methodGetProperties 
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetProperties( Attribute )
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetPropertyOwner
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Public methodGetRoot
Returns the root image object that contains the raw pixel data.
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 methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone 
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodMemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Public methodResumeAndRaiseChangedEvent
Re-enables raising of the Changed event after SuspendChangedEvent has been called. Also 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.
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 methodSetPixel
Pixel value at given location.
Public methodSetRoot
Sets the root image object that contains the raw pixel data.
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.
Public methodToBitmap
Creates a 24-bit RGB Windows bitmap from this image.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Fields

  NameDescription
Public fieldStatic memberSfCoordinateSpaceTree
This bit will be set in the EventArgs of a Changed event every time the value returned by CoordinateSpaceTree may have changed.
Public fieldStatic memberSfPixelFromRootTransform
This bit will be set in the EventArgs of a Changed event every time the value returned by PixelFromRootTransform may have changed.
Public fieldStatic memberSfSelectedSpaceName
This bit will be set in the EventArgs of a Changed event every time the value returned by SelectedSpaceName may have changed.
Top
Properties

  NameDescription
Public propertyAllocated
Whether there is pixel data associated with this image.
Public propertyChangedEventSuspended
If nonzero, indicates that the raising of the Changed event has been suspended. This value is incremented when SuspendChangedEvent is called and decremented when ResumeAndRaiseChangedEvent is called.
Public propertyCoordinateSpaceTree
Returns/sets the tree of all named coordinate spaces for this image. The tree provides advanced functions for managing coordinate spaces.
Public propertyHasChanged
If true, the serializable state of this object has changed since the last time it was serialized.
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 propertyWidth
Width of the image.
Top
Events

  NameDescription
Public eventChanged
Occurs when one or more parts of the object's state may have changed.
Top
Remarks

Interface that describes a rectangular array of 8 bit grey scale pixels.

See Also