Helper class that takes care of pixel format conversion. More...
Inherits INativeHandle.
Public Member Functions | |
PixelFormatConverter (PfncFormat sourceFormat, PfncFormat destinationFormat) | |
Constructor. More... | |
void | Execute< T > (T sourceObject, Image destinationObject) |
Converts a PFNC compliant object to another. sourceObject Data source to be converted. destinationObject Destination object that stores the converted data. T Input object type. More... | |
void | Dispose () |
IDisposable implementation. | |
Static Public Member Functions | |
static PixelFormatConverter | Create (PfncFormat sourceFormat, PfncFormat destinationFormat) |
Creates a pixel format converter. More... | |
Properties | |
PfncFormat | SourceFormat [get] |
Gets the source pixel format. | |
PfncFormat | DestinationFormat [get] |
Gets the destination pixel format. | |
IntPtr | Handle [get] |
Native handle of the calibrator. | |
bool | IsDisposed [get] |
Gets if the native handle has been disposed. | |
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 | |
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... | |
Helper class that takes care of pixel format conversion.
PixelFormatConverter | ( | PfncFormat | sourceFormat, |
PfncFormat | destinationFormat | ||
) |
Constructor.
sourceFormat | Source pixel format. |
destinationFormat | Destination pixel format. |
CvbException | When an error during converter creation occurs. |
|
static |
Creates a pixel format converter.
sourceFormat | Source pixel format. |
destinationFormat | Destination pixel format. |
CvbException | When an error during converter creation occurs. |
void Execute< T > | ( | T | sourceObject, |
Image | destinationObject | ||
) |
Converts a PFNC compliant object to another. sourceObject Data source to be converted. destinationObject Destination object that stores the converted data. T Input object type.
ObjectDisposedException | >If the input sourceObject has already been disposed. |
ObjectDisposedException | >If the input destinationObject has already been disposed. |
ArgumentException | If sourceObject is not valid type. |
T | : | INativeHandle |
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.