Movie2 recorder for writing video files to disk.
More...
Inherits INativeHandle.
|
| Recorder (string path, Size2D size, RecorderPixelFormat pixelFormat, RecordingSettings settings) |
| Creates a recorder object writing video streams with the given size and pixelFormat .
|
|
| Recorder (string path, Size2D size, RecorderPixelFormat pixelFormat) |
| 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.
|
|
void | Dispose () |
| IDisposable implementation.
|
|
void | Close () |
| Closes the stream.
|
|
void | Write (Image image) |
| Writes the given image into the stream.
|
|
void | Write (Image image, string metadata) |
| Writes the given image with the given metadata into the stream.
|
|
|
virtual void | Dispose (bool disposing) |
| IDispose helper function.
|
|
|
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.
|
|
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 . |