CogRLEBuffer ClassCognex VisionPro 9.8 SR1
Class that holds a run-length-encoded representation of an image.
Inheritance Hierarchy

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

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

[SerializableAttribute]
public class CogRLEBuffer : CogObjectBase, 
	ICogNetInternal, IDisposable, ICloneable, ISerializable, ICogHasChanged, 
	ICogChangedEvent

The CogRLEBuffer type exposes the following members.

Constructors

  NameDescription
Public methodCogRLEBuffer 
Constructs a new instance of this class.
Public methodCogRLEBuffer(IntPtr)
Constructs a new instance of this class using com pointer.
Public methodCogRLEBuffer(CogRLEBuffer)
Constructs a new instance of this class as a deep copy of the given instance.
Top
Methods

  NameDescription
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 methodCombine
Combine with another CogRLEBuffer. The SubImage must be contained within the primary RLE image's bounds.
Public methodCreateImage8Grey
Create an image from this CogRLEBuffer.
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 methodDrawIntoImage8Grey
Destructively write into an image from this CogRLEBuffer.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize (Overrides Object Finalize .)
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 the specified location in this RLE image.
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 methodGetRuns
Gets a one dimensional array of CogRLERun objects for this CogRLEBuffer. The order of these CogRLERun objects is row major - that is, they start with the first image pixel row, progressing from the first pixel column towards the last pixel column, then continue with the second row, and so on. The end of each row is identified with a CogRLERun object whose Length value is zero.
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 methodPixelMap
Pixel map this CogRLEBuffer.
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 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 methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Fields

  NameDescription
Public fieldStatic memberSfBinary
This bit will be set in the EventArgs of a Changed event every time the value returned by Binary may have changed.
Public fieldStatic memberSfGetPixel
This bit will be set in the EventArgs of a Changed event every time the value returned by GetPixel may have changed.
Public fieldStatic memberSfHeight
This bit will be set in the EventArgs of a Changed event every time the value returned by Height may have changed.
Public fieldStatic memberSfInitted
This bit will be set in the EventArgs of a Changed event every time the value returned by Initted may have changed.
Public fieldStatic memberSfNumRuns
This bit will be set in the EventArgs of a Changed event every time the value returned by NumRuns may have changed.
Public fieldStatic memberSfWidth
This bit will be set in the EventArgs of a Changed event every time the value returned by Width may have changed.
Public fieldStatic memberSfX
This bit will be set in the EventArgs of a Changed event every time the value returned by X may have changed.
Public fieldStatic memberSfY
This bit will be set in the EventArgs of a Changed event every time the value returned by Y may have changed.
Top
Properties

  NameDescription
Public propertyBinary
Set to true, if this object contains only data with values 0 and 255.
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 propertyHasChanged
If true, the serializable state of this object has changed since the last time it was serialized.
Public propertyHeight
Height dimension of this RLE image.
Public propertyInitted
Set to true, if this object has been initialized.
Public propertyNumRuns
Total number of runs in this RLE image.
Public propertyWidth
Width dimension of this RLE image.
Public propertyX
Leftmost coordinate of the RLE image.
Public propertyY
Topmost coordinate of the RLE image.
Top
Events

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

Interface of a buffer which holds a Run Length Encoded image.

See Also