Class PvBufferWriter
Saves the contents of a PvBuffer object to a raw data file or bitmap.
Implements
Inherited Members
Namespace: eBUSDotNetReceive
Assembly: eBUSDotNetReceive.dll
Syntax
public class PvBufferWriter : IDisposable
Remarks
To save an image buffer to disk:
- Acquire an image. See PvBuffer.
- Create an image save. Use PvBufferWriter.PvBufferWriter.
- Save the image to disk. Use Store( PvBuffer ^aBuffer, String ^aFilename, PvBufferFormatType aType ).
Constructors
View SourcePvBufferWriter()
Constructor.
Declaration
public PvBufferWriter()
Fields
View SourceswigCMemOwn
Determines who is responsible for deleting the underlying C++ object.
Declaration
protected bool swigCMemOwn
Field Value
| Type | Description |
|---|---|
| bool |
Properties
View SourceConverter
Returns a reference to the internal buffer converter. When writing the buffer to a file requires a conversion, it is performed automatically by the PvBufferWriter.
Declaration
public PvBufferConverter Converter { get; }
Property Value
| Type | Description |
|---|---|
| PvBufferConverter |
Methods
View SourceDispose()
Dispose.
Declaration
public void Dispose()
Dispose(bool)
Dispose
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
~PvBufferWriter()
Destructor.
Declaration
protected ~PvBufferWriter()
Store(PvBuffer, string)
Saves a #PvBuffer to disk.
Declaration
public PvResult Store(PvBuffer aBuffer, string aFilename)
Parameters
| Type | Name | Description |
|---|---|---|
| PvBuffer | aBuffer | The image to save. |
| string | aFilename | The filename, including extension. The format uses the same standard as the C fopen function. In C/C++, valid filenames include "myfile.raw", "..\myfile.bmp", "C:\myfile.bmp". |
Returns
| Type | Description |
|---|---|
| PvResult | Includes:
|
Store(PvBuffer, string, PvBufferFormatType)
Saves a #PvBuffer to disk.
Declaration
public PvResult Store(PvBuffer aBuffer, string aFilename, PvBufferFormatType aType)
Parameters
| Type | Name | Description |
|---|---|---|
| PvBuffer | aBuffer | The image to save. |
| string | aFilename | The filename, including extension. The format uses the same standard as the C fopen function. In C/C++, valid filenames include "myfile.raw", "..\myfile.bmp", "C:\myfile.bmp". |
| PvBufferFormatType | aType | The format of the image; a PvBufferFormatType enumeration. |
Returns
| Type | Description |
|---|---|
| PvResult | Includes:
|
Store(PvBuffer, string, PvBufferFormatType, out uint)
Saves a #PvBuffer to disk.
Declaration
public PvResult Store(PvBuffer aBuffer, string aFilename, PvBufferFormatType aType, out uint aBytesWritten)
Parameters
| Type | Name | Description |
|---|---|---|
| PvBuffer | aBuffer | The image to save. |
| string | aFilename | The filename, including extension. The format uses the same standard as the C fopen function. In C/C++, valid filenames include "myfile.raw", "..\myfile.bmp", "C:\myfile.bmp". |
| PvBufferFormatType | aType | The format of the image; a PvBufferFormatType enumeration. |
| uint | aBytesWritten | If not NULL (default) contains the number of bytes effectively written when storing the buffer. |
Returns
| Type | Description |
|---|---|
| PvResult | Includes:
|