using NTwain.Data;
using System;
namespace NTwain
{
///
/// Contains event data after whatever data from the source has been transferred.
///
public class DataTransferredEventArgs : EventArgs
{
///
/// Gets pointer to the complete data if the transfer was native.
/// The data will be freed once the event handler ends
/// so consumers must complete whatever processing before then.
/// For image type this data is DIB (Windows), PICT (old Mac), and TIFF (Linux/OSX).
///
/// The data pointer.
public IntPtr NativeData { get; internal set; }
///
/// Gets the file path to the complete data if the transfer was file or memory-file.
///
///
/// The file path.
///
public string FileDataPath { get; internal set; }
///
/// Gets the raw memory data if the transfer was memory.
/// Consumer application will need to do the parsing based on the values
/// from .
///
///
/// The memory data.
///
public byte[] MemData { get; internal set; }
///
/// Gets the final image information if applicable.
///
///
/// The final image information.
///
public TWImageInfo ImageInfo { get; internal set; }
///
/// Gets the extended image information if applicable.
///
///
/// The extended image information.
///
public TWExtImageInfo ExImageInfo { get; internal set; }
}
}