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. /// public string FilePath { get; internal set; } /// /// Gets the memory data if the transfer was memory. /// /// /// The memory data. /// public byte[] MemData { get; internal set; } /// /// Gets the final image information if applicable. /// /// /// The final image information. /// public TWImageInfo FinalImageInfo { get; internal set; } } }