The Common Vision Blox image. More...
Inherits INativeHandle, and ICloneable.
Inherited by DeviceImage, StreamImage, FileImage, FftImage, MappedImage, PanoramicMappedImage, and WrappedImage.
Public Member Functions | |
Image (int width, int height) | |
Creates an uninitialized image with the given width and height . More... | |
Image (Size2D size) | |
Creates an uninitialized image with the given size . More... | |
Image (int width, int height, int numPlanes) | |
Creates an uninitialized image with the given width and height , numPlanes infos. More... | |
Image (Size2D size, int numPlanes) | |
Creates an uninitialized image with the given size and numPlanes . More... | |
Image (int width, int height, int numPlanes, PixelDataType dataType, int bitDepth) | |
Creates an uninitialized image with the given width and height , numPlanes infos. More... | |
Image (Size2D size, int numPlanes, PixelDataType dataType, int bitDepth) | |
Creates an uninitialized image with the given size and numPlanes . More... | |
Image (int width, int height, int numPlanes, DataType dataType) | |
Creates an uninitialized image with the given width and height , numPlanes infos. More... | |
Image (Size2D size, int numPlanes, DataType dataType) | |
Creates an uninitialized image with the given size and numPlanes . More... | |
unsafe byte[] | ToObjectBuffer () |
Create a byte buffer with the serialized image object data. More... | |
override bool | Equals (object obj) |
Equality check. More... | |
override int | GetHashCode () |
Build a suitable hash code. More... | |
double[] | GetPixel (Point2D position) |
Gets the pixel values for all planes at the given position . More... | |
double[] | GetPixel (int x, int y) |
Gets the pixel values for all planes at the given position. More... | |
bool | Contains (Point2D pt) |
Tests if a pixel location is inside the image. More... | |
void | Initialize (Area2D area, double value) |
Initialize the given area in all planes of this image to the specified value. More... | |
void | Initialize (Rect area, double value) |
Initialize the given area in all planes of this image to the specified value. More... | |
void | Initialize (Rect area, params double[] values) |
Initialize the given area in all planes of this image to the specified values. More... | |
void | Initialize (Area2D area, params double[] values) |
Initialize the given area in all planes of this image to the specified values. More... | |
void | Initialize (double value) |
Initialize all planes of this image to the specified value. More... | |
void | Initialize (params double[] values) |
Initialize all planes of this image to the specified values. More... | |
virtual Image | Clone () |
Creates a new Image object that is a copy of the current instance. More... | |
virtual Image | Copy () |
Creates a new Image object that is a copy of the current instance. More... | |
void | CopyTo (Image targetImage, Rect sourceRect, Point2D targetPosition) |
Copies the image data from the sourceRect of this image to the targetImage targetPosition . More... | |
void | CopyTo (Image targetImage) |
Copies the image data from this image to the targetImage . More... | |
MappedImage | Map (Rect rect) |
Creates a mapped image of the rect region of this image. More... | |
MappedImage | Map (Rect sourceRect, Size2D targetSize) |
Creates a mapped image of the sourceRect region of this image scaled to the targetSize . More... | |
MappedImage | Map (Size2D targetSize) |
Creates a mapped image of this whole image scaled to the targetSize . More... | |
MappedImage | Map (RotationMap rotation) |
Creates a mapped image of this whole image rotated by the given rotation . More... | |
Image | SubImage (Rect sourceRect) |
Creates a new Image that is a copy from the given sourceRect of the image data of the current instance. More... | |
Image | SubImage (Area2D sourceArea) |
Creates a new Image that is a copy from the given sourceArea of the image data of the current instance. More... | |
void | Save (string fileName) |
Write the current content of the image into a file. The file format to be used is determined by the extension of the fileName . If a lossy format is selected, a default quality setting will be used (if you want to specify your own quality setting, please use the overload that allows specification of a quality value). More... | |
void | Save (string fileName, double quality) |
Write the current content of the image into a file. The file format to be used is determined based on the fileName 's extension. The quality (and thereby size) of the resulting file can be adjusted using the quality parameter. When saving to a lossless file format, the quality parameter will be silently ignored. More... | |
void | RaisePixelContentChanged () |
Inform clients listening to the PixelContentChanged event that this image data has been completely updated (full area). | |
void | RaisePixelContentChanged (Rect rect) |
Inform clients listening to the PixelContentChanged event that this image data has been updated in the given rect . More... | |
void | BeginPixelContentChange () |
Starts an image update block. More... | |
void | EndPixelContentChange () |
Ends an image update block. More... | |
IDisposable | StartPixelContentChangeBlock () |
Starts an image update block to be used in a using statement. More... | |
Point2Dd | ImageToPixelCoordinates (Point2Dd p) |
Convert a pixel from image to pixel coordinates. More... | |
Area2D | ImageToPixelCoordinates (Area2D area) |
Convert an Area2D from image to pixel coordinates. More... | |
Point2Dd | PixelToImageCoordinates (Point2Dd p) |
Convert a pixel from pixel to image coordinates. More... | |
Area2D | PixelToImageCoordinates (Area2D area) |
Convert an Area2D from pixel to image coordinates. More... | |
void | Dispose () |
IDisposable implementation. More... | |
void | Close () |
Alias of the Dispose() method. More... | |
Static Public Member Functions | |
static Image | FromHandle (IntPtr nativeHandle) |
Create a Image from a native handle. More... | |
static Image | FromHandle (IntPtr nativeHandle, ShareObject doShare) |
Create a Image from a native handle and potentially increment the unmanaged reference count on the native handle. More... | |
static Image | FromHandle (IntPtr nativeHandle, ShareObject doShare, UseMemoryPressure useMemoryPressure) |
Create a Image from a native handle and potentially increment the unmanaged reference count on the native handle. More... | |
static Image | FromHandle (IntPtr nativeHandle, ShareObject doShare, long memoryPressure) |
Create a Image from a native handle and potentially increment the unmanaged reference count on the native handle. More... | |
static unsafe Image | FromObjectBuffer (byte[] arr) |
Deserialize an image object from an object buffer generated by the extension method ToObjectBuffer. More... | |
static FileImage | FromFile (string fileName) |
Loads an image with the given fileName . More... | |
static Image | FromPlanes (MappingOption mapping, params ImagePlane[] planes) |
Create an image that is the result of concatenating a series of input planes . More... | |
static Image | FromImages (MappingOption mapping, params Image[] images) |
Create an image that is the result of concatenating a series of input images. More... | |
static Image | FromPixelFormat (Size2D size, PfncFormat pixelFormat) |
Create a Image from a pixel format. More... | |
static Image | FromPixelFormat (int width, int height, PfncFormat pixelFormat) |
Create a Image from a pixel format. More... | |
Protected Member Functions | |
Image (IntPtr handle) | |
Creates a Image object around a native handle. More... | |
Image (IntPtr handle, ShareObject doShare, UseMemoryPressure useMemoryPressure) | |
Creates a Image object around a native handle and guesses the memory pressure if useMemoryPressure indicates that. More... | |
Image (IntPtr handle, ShareObject doShare, long memoryPressure) | |
Creates a Image object around a native handle with the given memoryPressure . More... | |
void | OnPixelContentChanged () |
Inform clients listening to the PixelContentChanged event that this image data has been completely updated (full area). | |
virtual void | OnPixelContentChanged (Rect rect) |
Inform clients listening to the PixelContentChanged event that this image data has been updated in the given rect . More... | |
virtual void | Dispose (bool disposing) |
IDispose helper function. More... | |
void | Detach () |
Detaches this Image object from the native IMG . More... | |
Properties | |
bool | IsDisposed [get] |
Tests if the native handle has already been disposed. | |
ImagePlaneCollection | Planes [get] |
Access to the infos of the image. More... | |
Size2D | Size [get] |
Size of the image. More... | |
int | Width [get] |
Width of the image in pixels. More... | |
int | Height [get] |
Height of the image in pixels. More... | |
bool | HasOverlayMask [get] |
True if at least one of the image infos has the overlay mask bit set. More... | |
IntPtr | Handle [get] |
Native CVB image handle. More... | |
ColorModel | ColorModel [get] |
Color model that is realized by this image. More... | |
Rect | Bounds [get] |
Retrieve the bounding rect of the Image. More... | |
AffineMatrix2D | CoordinateSystem [get, set] |
Coordinate system of the image. More... | |
Properties inherited from INativeHandle | |
IntPtr | Handle [get] |
The native handle of the object. | |
bool | IsDisposed [get] |
Possibility to check whether the object has already been disposed of. | |
Events | |
EventHandler< RectEventArgs > | PixelContentChanged |
Fired when the image data of this image was consciously updated. More... | |
EventHandler | HandleChanged |
Event that is fired when the handle of this image changed. | |
NativeHandleEventDelegate | ObjectDisposing |
Raised when this object is about to be disposed via the IDisposable.Dispose method. More... | |
Events inherited from INativeHandle | |
NativeHandleEventDelegate | ObjectDisposing |
Raised when this object is about to be disposed via the IDisposable.Dispose method. More... | |
The Common Vision Blox image.
Image | ( | int | width, |
int | height | ||
) |
Creates an uninitialized image with the given width and height .
The image has a single plane, 8 bits per pixel PixelDataType.UInt.
width | Width of the image in pixels. |
height | Height of the image in pixels. |
ArgumentOutOfRangeException | If width , height are negative. |
InsufficientMemoryException | If not enough memory is available to create the image. |
Creates an uninitialized image with the given size .
size | Size of the image in pixels. |
ArgumentOutOfRangeException | If size width or height are negative. |
InsufficientMemoryException | If not enough memory is available to create the image. |
Image | ( | int | width, |
int | height, | ||
int | numPlanes | ||
) |
Creates an uninitialized image with the given width and height , numPlanes infos.
The image data type for all infos is 8 bits per pixel PixelDataType.UInt.
width | Width of the image in pixels. |
height | Height of the image in pixels. |
numPlanes | Number of (color) infos. |
ArgumentOutOfRangeException | If width , height are negative or if numPlanes is smaller than one. |
InsufficientMemoryException | If not enough memory is available to create the image. |
Creates an uninitialized image with the given size and numPlanes .
size | Size of the image in pixels. |
numPlanes | Number of (color) infos. |
ArgumentOutOfRangeException | If size width or height are negative or numPlanes is smaller than one. |
InsufficientMemoryException | If not enough memory is available to create the image. |
Image | ( | int | width, |
int | height, | ||
int | numPlanes, | ||
PixelDataType | dataType, | ||
int | bitDepth | ||
) |
Creates an uninitialized image with the given width and height , numPlanes infos.
This constructor defines also the all plane's pixels data format via the dataType and bitDepth .
Allowed bit depth for integer images are:
For float images:
width | Width of the image in pixels. |
height | Height of the image in pixels. |
numPlanes | Number of (color) infos. |
dataType | Pixel data type. |
bitDepth | Bits per pixel per plane. |
ArgumentException | If dataType has an invalid value. |
ArgumentOutOfRangeException | If width , height are negative; if numPlanes is smaller than one; or if bitDepth is out of range. |
InsufficientMemoryException | If not enough memory is available to create the image. |
Image | ( | Size2D | size, |
int | numPlanes, | ||
PixelDataType | dataType, | ||
int | bitDepth | ||
) |
Creates an uninitialized image with the given size and numPlanes .
This constructor defines also the all plane's pixels data format via the dataType and bitDepth .
Allowed bit depth for integer images are:
For float images:
size | Size of the image in pixels. |
numPlanes | Number of (color) infos. |
dataType | Pixel data type. |
bitDepth | Bits per pixel per plane. |
ArgumentException | If dataType has an invalid value. |
ArgumentOutOfRangeException | If size width or height are negative or numPlanes is smaller than one; or if bitDepth is out of range. |
InsufficientMemoryException | If not enough memory is available to create the image. |
Creates an uninitialized image with the given width and height , numPlanes infos.
This constructor defines also the all plane's pixels data format via the dataType .
width | Width of the image in pixels. |
height | Height of the image in pixels. |
numPlanes | Number of (color) infos. |
dataType | Pixel data type. |
ArgumentOutOfRangeException | If width , height are negative; or if numPlanes is smaller than one. |
InsufficientMemoryException | If not enough memory is available to create the image. |
Creates an uninitialized image with the given size and numPlanes .
This constructor defines also the all plane's pixels data format via the dataType .
size | Size of the image in pixels. |
numPlanes | Number of (color) infos. |
dataType | Pixel data type. |
ArgumentOutOfRangeException | If size width or height are negative or numPlanes is smaller than one. |
InsufficientMemoryException | If not enough memory is available to create the image. |
|
protected |
Creates a Image object around a native handle.
Does not share the given handle , but guesses memory pressure.
handle | Native handle of the image. |
|
protected |
Creates a Image object around a native handle and guesses the memory pressure if useMemoryPressure indicates that.
handle | Native handle of the image |
doShare | ShareObject.Yes if handle is to be shared. |
useMemoryPressure | Guesses memory pressure if UseMemoryPressure.Yes is set. |
|
protected |
Creates a Image object around a native handle with the given memoryPressure .
handle | Native handle of the image |
doShare | ShareObject.Yes if handle is to be shared. |
memoryPressure | Number of bytes to indicate native object size; 0 or negative values are ignored. |
void BeginPixelContentChange | ( | ) |
Starts an image update block.
Normally API operations changing this image will result in an immediate PixelContentChanged event. If several updates are performed they can be grouped together so that only one event is fired after the full block.
Several blocks can also be nested. The event will then fired when the last block is closed.
|
virtual |
Creates a new Image object that is a copy of the current instance.
This method performs a deep copy of the image data the current instance currently points to.
This means that if you clone a driver image, you receive a new plain Image without any driver interfaces!
InsufficientMemoryException | The new image buffer could not be created. |
CvbException | If image format could not be cloned. |
ObjectDisposedException | If this image has already been disposed |
Reimplemented in MappedImage, and WrappedImage.
void Close | ( | ) |
Alias of the Dispose() method.
Call this method to release the resources allocated by this image immediately. Remember that after calling Dispose, any subsequent access to references to this image will result in an ObjectDisposedException.
bool Contains | ( | Point2D | pt | ) |
Tests if a pixel location is inside the image.
pt | Location to test |
true
if pt refers to a position inside the image, false
otherwise.
|
virtual |
Creates a new Image object that is a copy of the current instance.
This method performs a deep copy of the image data the current instance currently points to.
This means that if you clone a driver image, you receive a new plain Image without any driver interfaces!
InsufficientMemoryException | The new image buffer could not be created. |
CvbException | If image format could not be cloned. |
ObjectDisposedException | If this image has already been disposed |
void CopyTo | ( | Image | targetImage | ) |
Copies the image data from this image to the targetImage .
targetImage | Image to copy to. |
CvbException | Copy regions or data types incompatible. |
ObjectDisposedException | If this image has already been disposed |
Copies the image data from the sourceRect of this image to the targetImage targetPosition .
targetImage | Image to copy to. |
sourceRect | Source rectangle in pixels to copy from. |
targetPosition | Position in targetImage in pixels to copy to. |
CvbException | Copy regions or data types incompatible. |
ObjectDisposedException | If this image has already been disposed |
|
protected |
Detaches this Image object from the native IMG
.
This call marks this object as disposed without changing the underlying ref-count.
void Dispose | ( | ) |
IDisposable implementation.
Call this method to release the resources allocated by this image immediately. Remember that after calling Dispose, any subsequent access to references to this image will result in an ObjectDisposedException.
|
protectedvirtual |
IDispose helper function.
disposing | true when called via IDisposable.Dispose, false when called by the finalizer. |
Reimplemented in BufferImage, DeviceImage, MultiPartImage, RingBufferImage, MappedImage, and PanoramicMappedImage.
void EndPixelContentChange | ( | ) |
Ends an image update block.
See BeginPixelContentChange for additional information.
override bool Equals | ( | object | obj | ) |
Equality check.
obj | Object to which to compare. |
true
if this image reference is equal.
|
static |
Loads an image with the given fileName .
fileName | File name of image to load. |
FileNotFoundException | when the file specified by the fileName parameter does not exist. |
FileLoadException | If the file specified by the fileName parameter exists, but cannot be loaded. |
ArgumentNullException | If fileName is null. |
|
static |
Create a Image from a native handle.
Note that this function is not intended for general use. Providing invalid values on the nativeHandle parameter will most likely lead to severe problems in your application.
nativeHandle | Nandle to create the image from. |
|
static |
Create a Image from a native handle and potentially increment the unmanaged reference count on the native handle.
Note that this function is not intended for general use. Providing invalid values on the nativeHandle parameter will most likely lead to severe problems in your application.
This function will guess the memory pressure of the native image passed via the nativeHandle
nativeHandle | Handle to create the image from. |
doShare | ShareObject.Yes if nativeHandle is to be shared. |
|
static |
Create a Image from a native handle and potentially increment the unmanaged reference count on the native handle.
Note that this function is not intended for general use. Providing invalid values on the nativeHandle parameter will most likely lead to severe problems in your application.
nativeHandle | Handle to create the image from. |
doShare | ShareObject.Yes if nativeHandle is to be shared. |
memoryPressure | Gives the number of bytes the native object occupies. |
|
static |
Create a Image from a native handle and potentially increment the unmanaged reference count on the native handle.
Note that this function is not intended for general use. Providing invalid values on the nativeHandle parameter will most likely lead to severe problems in your application.
This function will guess the memory pressure of the native image passed via the nativeHandle if useMemoryPressure is set to UseMemoryPressure.Yes.
nativeHandle | Handle to create the image from. |
doShare | ShareObject.Yes if nativeHandle is to be shared. |
useMemoryPressure | Guesses memory pressure if UseMemoryPressure.Yes is set. |
|
static |
Create an image that is the result of concatenating a series of input images.
mapping | Selects the relationship between the result Image and the input image |
images | Images to be concatenated; all images in the input array must be valid and have equal size |
ArgumentNullException | If images is null |
InvalidOperationException | If there are no source images |
FormatException | If the input images do not have matching width/height |
|
static |
Deserialize an image object from an object buffer generated by the extension method ToObjectBuffer.
arr | Array to recreate the image object from. |
ArgumentNullException | if the arr parameter is null |
|
static |
Create a Image from a pixel format.
width | Width of the image in pixels. |
height | Height of the image in pixels. |
pixelFormat | Pixel format of the image to be created. |
InsufficientMemoryException | If width is invalid. |
InsufficientMemoryException | If height is invalid. |
ArgumentException | If pixelFormat is invalid. |
ArgumentOutOfRangeException | If either, or both of width or /// height is out of range. |
CvbException | When an error during image creation occurs. |
|
static |
Create a Image from a pixel format.
size | Size of the image in pixels. |
pixelFormat | Pixel format of the image to be created. |
InsufficientMemoryException | If any of size properties is invalid. |
ArgumentException | If specified pixel format is invalid. |
CvbException | When an error during image creation occurs. |
|
static |
Create an image that is the result of concatenating a series of input planes .
mapping | Selects the relationship between the result Image and the input image |
planes | Planes to be concatenated; all images in the input array must be valid and have equal size |
ArgumentNullException | If planes is null |
InvalidOperationException | If there are no source planes |
FormatException | If the input planes do not have matching width/height |
override int GetHashCode | ( | ) |
Build a suitable hash code.
double[] GetPixel | ( | int | x, |
int | y | ||
) |
Gets the pixel values for all planes at the given position.
x | Position in pixel coordinates. |
y | Position in pixel coordinates. |
double[] GetPixel | ( | Point2D | position | ) |
Gets the pixel values for all planes at the given position .
position | Position in pixel coordinates. |
Convert an Area2D from image to pixel coordinates.
area | Area in image coordinates. |
ObjectDisposedException | If this image has already been disposed of. |
Convert a pixel from image to pixel coordinates.
p | Point in image coordinates |
ObjectDisposedException | If this image has already been disposed of. |
void Initialize | ( | Area2D | area, |
double | value | ||
) |
Initialize the given area in all planes of this image to the specified value.
area | Area to be initialized |
value | Value to initialize to. |
void Initialize | ( | Area2D | area, |
params double[] | values | ||
) |
Initialize the given area in all planes of this image to the specified values.
area | Area to be initialized. |
values | Values to initialize the individual planes to. |
ArgumentNullException | If values is null. |
void Initialize | ( | double | value | ) |
Initialize all planes of this image to the specified value.
value | Value to initialize to. |
void Initialize | ( | params double[] | values | ) |
Initialize all planes of this image to the specified values.
values | Calues to initialize the individual planes to |
ArgumentNullException | If values is null |
void Initialize | ( | Rect | area, |
double | value | ||
) |
Initialize the given area in all planes of this image to the specified value.
area | Area to be initialized |
value | Value to initialize to. |
void Initialize | ( | Rect | area, |
params double[] | values | ||
) |
Initialize the given area in all planes of this image to the specified values.
area | Area to be initialized. |
values | Value to initialize to. |
MappedImage Map | ( | Rect | rect | ) |
Creates a mapped image of the rect region of this image.
The result is an exact view on this image's data and no scaling is done.
rect | Region to create map from. |
MappedImage Map | ( | Rect | sourceRect, |
Size2D | targetSize | ||
) |
Creates a mapped image of the sourceRect region of this image scaled to the targetSize .
As this is simply a view to another image no interpolation is done when the mapped pixels are accessed. Smaller sizes result in pixel skipping while larger sizes result in replicated pixels.
sourceRect | Region to create map from. |
targetSize | Target size of the mapped image. |
MappedImage Map | ( | RotationMap | rotation | ) |
Creates a mapped image of this whole image rotated by the given rotation .
This is simply a view to another image, no data is copied. Please be aware that rotating an image map will have a negative performance impact when iterating through the mapped images' pixels.
rotation | Rotation to apply. |
ObjectDisposedException | If this image object is already disposed. |
MappedImage Map | ( | Size2D | targetSize | ) |
Creates a mapped image of this whole image scaled to the targetSize .
As this is simply a view to another image no interpolation is done when the mapped pixels are accessed. Smaller sizes result in pixel skipping while larger sizes result in replicated pixels.
targetSize | Target size of the mapped image. |
|
protectedvirtual |
Inform clients listening to the PixelContentChanged event that this image data has been updated in the given rect .
rect | Affected area. |
Reimplemented in MappedImage, and PanoramicMappedImage.
Convert an Area2D from pixel to image coordinates.
area | Area in pixel coordinates |
ObjectDisposedException | If the image has already been disposed of. |
Convert a pixel from pixel to image coordinates.
p | Point in pixel coordinates |
ObjectDisposedException | If the image has already been disposed of. |
void RaisePixelContentChanged | ( | Rect | rect | ) |
Inform clients listening to the PixelContentChanged event that this image data has been updated in the given rect .
rect | Affected area. |
void Save | ( | string | fileName | ) |
Write the current content of the image into a file. The file format to be used is determined by the extension of the fileName . If a lossy format is selected, a default quality setting will be used (if you want to specify your own quality setting, please use the overload that allows specification of a quality value).
fileName | File name into which to save the image |
ObjectDisposedException | If this image has already been disposed |
IOException | If saving the image failed |
void Save | ( | string | fileName, |
double | quality | ||
) |
Write the current content of the image into a file. The file format to be used is determined based on the fileName 's extension. The quality (and thereby size) of the resulting file can be adjusted using the quality parameter. When saving to a lossless file format, the quality parameter will be silently ignored.
fileName | File name into which to save the image |
quality | Quality at which to save the image (should be in the range 0...1) |
ObjectDisposedException | If this image has already been disposed |
IOException | If saving the image failed |
IDisposable StartPixelContentChangeBlock | ( | ) |
Starts an image update block to be used in a using
statement.
Calls BeginPixelContentChange. As soon as the returned object is disposed, the EndPixelContentChange is called.
Creates a new Image that is a copy from the given sourceArea of the image data of the current instance.
This method performs a deep copy of the image data the current instance currently points to.
This means that if you clone a driver image, you receive a new plain Image without any driver interfaces!
sourceArea | Area2D that identifies the region to copy. |
InsufficientMemoryException | The new image buffer could not be created. |
CvbException | If image format could not be cloned. |
ObjectDisposedException | If this image has already been disposed |
Creates a new Image that is a copy from the given sourceRect of the image data of the current instance.
This method performs a deep copy of the image data the current instance currently points to.
This means that if you clone a driver image, you receive a new plain Image without any driver interfaces!
sourceRect | Rectangle that identifies the region to copy. |
InsufficientMemoryException | The new image buffer could not be created. |
CvbException | If image format could not be cloned. |
ObjectDisposedException | If this image has already been disposed |
unsafe byte[] ToObjectBuffer | ( | ) |
Create a byte buffer with the serialized image object data.
Note that this data do not directly correspond to pixel data - they are serialized object data that may be used for streaming and can be serialized by means of the FromObjectBuffer method.
Exception | if serialization failed |
|
get |
|
get |
Color model that is realized by this image.
ObjectDisposedException | If this image has already been disposed |
|
getset |
Coordinate system of the image.
ObjectDisposedException | If the image has already been disposed |
|
get |
Native CVB image handle.
It is normally not necessary to work with this handle in CVB.Net. Note that using this handle in connection with the legacy CVB managed wrappers may actually be disruptive to your application.
Implements INativeHandle.
|
get |
True if at least one of the image infos has the overlay mask bit set.
ObjectDisposedException | If the image has already been disposed |
|
get |
Height of the image in pixels.
ObjectDisposedException | If this image has already been disposed of |
|
get |
Access to the infos of the image.
ObjectDisposedException | If this image has already been disposed of. |
|
get |
Size of the image.
ObjectDisposedException | If this image has already been disposed of. |
|
get |
Width of the image in pixels.
ObjectDisposedException | If this image has already been disposed of |
NativeHandleEventDelegate ObjectDisposing |
Raised when this object is about to be disposed via the IDisposable.Dispose method.
This event is raised right before this object is disposed. The dispose itself cannot be canceled.
EventHandler<RectEventArgs> PixelContentChanged |
Fired when the image data of this image was consciously updated.
This event is only fired when using methods of this CVB API. Specifically this event is not fired when you use the ImagePlane.GetLinearAccess or ImagePlane.Vpat methods as it is not known whether the image data has changed. To inform clients of image data change in this case you can either call OnPixelContentChanged() or use the ImagePlane.GetLockedAccess method.