Movie2 recorder for writing video files to disk.
More...
Inherits INativeHandle.
|
virtual void | Dispose (bool disposing) |
| IDispose helper function. More...
|
|
|
RecordingEngineType | EngineType [get] |
| Recording engine this recorder uses.
|
|
IntPtr | Handle [get] |
| Gets the native handle of the Movie2 recorder object.
|
|
bool | IsDisposed [get] |
| Gets whether this object 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.
|
|
Movie2 recorder for writing video files to disk.
◆ Recorder() [1/2]
Creates a recorder object writing video streams with the given size and pixelFormat .
The stream is not opened and can be configured.
- Parameters
-
path | Path to write avi container to. |
size | Size of the video frames in pixels. |
pixelFormat | Defines whether mono or color images are written. |
settings | Settings for initializing the recorder. |
◆ Recorder() [2/2]
Opens a recorder object for writing a video stream in path with the given size and pixelFormat and default RecordingSettings. Uses the DirectShowEngine per default.
- Parameters
-
path | Path to write avi container to. |
size | Size of the video frames in pixels. |
pixelFormat | Defines whether mono or color images are written. |
◆ Close()
◆ Dispose() [1/2]
IDisposable implementation.
Call this method to release the resources allocated by this object immediately. Remember that after calling Dispose, any subsequent access to references to this object will result in an ObjectDisposedException.
◆ Dispose() [2/2]
virtual void Dispose |
( |
bool |
disposing | ) |
|
|
protectedvirtual |
IDispose helper function.
- Parameters
-
disposing | true when called via IDisposable.Dispose, false when called by the finalizer. |
◆ Write() [1/2]
void Write |
( |
Image |
image | ) |
|
Writes the given image into the stream.
- Parameters
-
image | Image to write into the stream. |
- Exceptions
-
ObjectDisposedException | Recorder has been disposed. |
ArgumentNullException | image is null . |
◆ Write() [2/2]
void Write |
( |
Image |
image, |
|
|
string |
metadata |
|
) |
| |
Writes the given image with the given metadata into the stream.
- Parameters
-
image | Image to write into the stream. |
metadata | Metadata text to write into the stream. |
- Exceptions
-
ObjectDisposedException | Recorder has been disposed. |
ArgumentNullException | image is null . |