Helper class that takes care of pixel format conversion.
More...
Inherits INativeHandle.
|
| | PixelFormatConverter (PfncFormat sourceFormat, PfncFormat destinationFormat) |
| | Constructor.
|
| |
| 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.
|
| |
|
void | Dispose () |
| | IDisposable implementation.
|
| |
|
|
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.
|
| |
◆ PixelFormatConverter()
Constructor.
- Parameters
-
| sourceFormat | Source pixel format. |
| destinationFormat | Destination pixel format. |
- Exceptions
-
◆ Create()
Creates a pixel format converter.
- Parameters
-
| sourceFormat | Source pixel format. |
| destinationFormat | Destination pixel format. |
- Returns
- Requested pixel format converter.
- Exceptions
-
◆ Execute< T >()
| 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.
- Exceptions
-
| 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. |
◆ 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.