Color classifier object.
More...
Inherits INativeHandle.
|
void | Dispose () |
| IDisposable implementation.
|
|
| Classifier (string fileName) |
| Load a saved classifier from a file. More...
|
|
void | Save (string fileName) |
| Write the classifier to a file. More...
|
|
|
virtual void | Dispose (bool disposing) |
| IDisposable helper function. More...
|
|
|
IntPtr | Handle [get] |
| Native Color classifier handle. More...
|
|
bool | IsDisposed [get] |
| Tests if the native handle has already been disposed.
|
|
string | Name [get, set] |
| Name of the classifier. More...
|
|
string | FileName [get] |
| Name of the file from which this classifier was loaded (string.Empty if this image list was neither loaded nor saved since its construction). 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.
|
|
◆ Classifier()
Load a saved classifier from a file.
- Parameters
-
fileName | name of the file to be loaded |
- Exceptions
-
FileNotFoundException | If the classifier file does not exist |
FileLoadException | If loading an existing classifier file failed |
ArgumentNullException | If fileName is null |
◆ Dispose()
virtual void Dispose |
( |
bool |
disposing | ) |
|
|
protectedvirtual |
IDisposable helper function.
- Parameters
-
◆ Save()
void Save |
( |
string |
fileName | ) |
|
Write the classifier to a file.
- Parameters
-
- Exceptions
-
ObjectDisposedException | If the classifier has already been disposed |
ArgumentNullException | when fileName is null |
◆ FileName
Name of the file from which this classifier was loaded (string.Empty if this image list was neither loaded nor saved since its construction).
- Exceptions
-
ObjectDisposedException | If the classifier has already been disposed |
◆ Handle
Native Color classifier 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.
◆ Name
Name of the classifier.
- Exceptions
-
ObjectDisposedException | If the classifier has already been disposed |
◆ 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.