CogCopyRegion ClassCognex VisionPro 9.20
Class that copies a region of pixels into a destination image.
Inheritance Hierarchy

System Object
  System MarshalByRefObject
    Cognex.VisionPro.Implementation CogObjectBase
      Cognex.VisionPro.ImageProcessing CogCopyRegion

Namespace: Cognex.VisionPro.ImageProcessing
Assembly: Cognex.VisionPro.ImageProcessing (in Cognex.VisionPro.ImageProcessing.dll) Version: 80.0.0.0
Syntax

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

The CogCopyRegion type exposes the following members.

Constructors

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

  NameDescription
Protected methodattachCom
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 methodComputeDestinationRegion
Computes the SourceClipped, DestinationClipped and DestinationRegion values that would be returned by the Execute method, but does not copy any pixels.
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.)
Public methodExecute
Copies a region of the InputImage into the DestinationImage, or into a newly-created OutputImage if no DestinationImage is given.
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
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 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 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
Protected field__com
Protected field__disposed
Protected fieldStatic member__factory
Protected fieldStatic memberCreator
Public fieldStatic memberSfDefaultOutputImageType
This bit will be set in the EventArgs of a Changed event every time the value returned by DefaultOutputImageType may have changed.
Public fieldStatic memberSfDestinationImageAlignmentX
This bit will be set in the EventArgs of a Changed event every time the value returned by DestinationImageAlignmentX may have changed.
Public fieldStatic memberSfDestinationImageAlignmentY
This bit will be set in the EventArgs of a Changed event every time the value returned by DestinationImageAlignmentY may have changed.
Public fieldStatic memberSfFillBoundingBox
This bit will be set in the EventArgs of a Changed event every time the value returned by FillBoundingBox may have changed.
Public fieldStatic memberSfFillBoundingBoxPlane0Value
This bit will be set in the EventArgs of a Changed event every time the value returned by FillBoundingBoxPlane0Value may have changed.
Public fieldStatic memberSfFillBoundingBoxPlane1Value
This bit will be set in the EventArgs of a Changed event every time the value returned by FillBoundingBoxPlane1Value may have changed.
Public fieldStatic memberSfFillBoundingBoxPlane2Value
This bit will be set in the EventArgs of a Changed event every time the value returned by FillBoundingBoxPlane2Value may have changed.
Public fieldStatic memberSfFillBoundingBoxValue
This bit will be set in the EventArgs of a Changed event every time the value returned by FillBoundingBoxValue may have changed.
Public fieldStatic memberSfFillRegion
This bit will be set in the EventArgs of a Changed event every time the value returned by FillRegion may have changed.
Public fieldStatic memberSfFillRegionPlane0Value
This bit will be set in the EventArgs of a Changed event every time the value returned by FillRegionPlane0Value may have changed.
Public fieldStatic memberSfFillRegionPlane1Value
This bit will be set in the EventArgs of a Changed event every time the value returned by FillRegionPlane1Value may have changed.
Public fieldStatic memberSfFillRegionPlane2Value
This bit will be set in the EventArgs of a Changed event every time the value returned by FillRegionPlane2Value may have changed.
Public fieldStatic memberSfFillRegionValue
This bit will be set in the EventArgs of a Changed event every time the value returned by FillRegionValue may have changed.
Public fieldStatic memberSfImageAlignmentEnabled
This bit will be set in the EventArgs of a Changed event every time the value returned by ImageAlignmentEnabled may have changed.
Public fieldStatic memberSfInputImageAlignmentX
This bit will be set in the EventArgs of a Changed event every time the value returned by InputImageAlignmentX may have changed.
Public fieldStatic memberSfInputImageAlignmentY
This bit will be set in the EventArgs of a Changed event every time the value returned by InputImageAlignmentY may have changed.
Public fieldStatic memberSfMergedSpaceTreeName
This bit will be set in the EventArgs of a Changed event every time the value returned by MergedSpaceTreeName may have changed.
Public fieldStatic memberSfRegionMode
This bit will be set in the EventArgs of a Changed event every time the value returned by RegionMode may have changed.
Public fieldStatic memberSfSpaceTreeMode
This bit will be set in the EventArgs of a Changed event every time the value returned by SpaceTreeMode may have changed.
Top
Properties

  NameDescription
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 propertyDefaultOutputImageType
Specifies the output image type when no input image is supplied.
Public propertyDestinationImageAlignmentX
Specifies the X coordinate on DestinationImage used to align both images. This coordinate is specified in the same selected space as DestinationImage. It is only used when ImageAlignmentEnabled is true.
Public propertyDestinationImageAlignmentY
Specifies the Y coordinate on DestinationImage used to align both images. This coordinate is specified in the same selected space as DestinationImage. It is only used when ImageAlignmentEnabled is true.
Public propertyFillBoundingBox
Specifies whether to fill the bounding box with FillBoundingBoxValue instead of leaving it unchanged.
Public propertyFillBoundingBoxPlane0Value
Specifies the value to write into Plane 0 of pixels outside of the region and inside of the bounding box, if FillBoundingBox is True and the output image is a CogImage24PlanarColor.
Public propertyFillBoundingBoxPlane1Value
Specifies the value to write into Plane 1 of pixels outside of the region and inside of the bounding box, if FillBoundingBox is True and the output image is a CogImage24PlanarColor.
Public propertyFillBoundingBoxPlane2Value
Specifies the value to write into Plane 2 of pixels outside of the region and inside of the bounding box, if FillBoundingBox is True and the output image is a CogImage24PlanarColor.
Public propertyFillBoundingBoxValue
If FillBoundingBox=True, specifies the value with which to fill the bounding box outside the region. Otherwise, this property is ignored.
Public propertyFillRegion
Specifies whether to fill the destination region with FillRegionValue instead of copying pixels from the source image.
Public propertyFillRegionPlane0Value
Specifies the value with which to fill Plane 0 of the destination region if FillRegion is True and the output image is a CogImage24PlanarColor.
Public propertyFillRegionPlane1Value
Specifies the value with which to fill Plane 1 of the destination region if FillRegion is True and the output image is a CogImage24PlanarColor.
Public propertyFillRegionPlane2Value
Specifies the value with which to fill Plane 2 of the destination region if FillRegion is True and the output image is a CogImage24PlanarColor.
Public propertyFillRegionValue
Specifies the value with which to fill the destination region if FillRegion=True.
Public propertyHasChanged
If true, the serializable state of this object has changed since the last time it was serialized.
Public propertyImageAlignmentEnabled
Specifies whether or not the alignment coordinates should be used to align the InputImage with the DestinationImage (if given). If not enabled, the upper-left corner of the images will be used for alignment.
Public propertyInputImageAlignmentX
Specifies the X coordinate on InputImage used to align both images. This coordinate is specified in the same selected space as InputImage passed to the Execute method. It is only used when ImageAlignmentEnabled is true.
Public propertyInputImageAlignmentY
Specifies the Y coordinate on InputImage used to align both images. This coordinate is specified in the same selected space as InputImage passed to the Execute method. It is only used when ImageAlignmentEnabled is true.
Public propertyMergedSpaceTreeName
Specifies the name of a coordinate space that bridges the root nodes of the two coordinate space trees if a merged SpaceTreeMode is selected.
Public propertyRegionMode
Specifies whether copying will be performed strictly within the confines of the region specified or within the image aligned bounding box of the region.
Public propertySpaceTreeMode
Specifies how the coordinate space tree of the DestinationImage should be affected. Ignored if no DestinationImage is given.
Top
Events

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

Primary interface of the CogCopyRegion class.

See Also