AcquisitionTwainDataTransfer Event |
Namespace: Atalasoft.Twain
private void acquisition_TwainDataTransfer(object sender, TwainDataTransferArgs e) { // Process the data instead of letting DotTwain do it. e.DataHandled = true; // ... processing ... // Free the memory. System.Runtime.InteropServices.Marshal.FreeHGlobal(e.Data); }
Private Sub acquisition_TwainDataTransfer(ByVal sender As Object, ByVal e As TwainDataTransferArgs) ' Process the data instead of letting DotTwain do it. e.DataHandled = True ' ... processing ... ' Free the memory. System.Runtime.InteropServices.Marshal.FreeHGlobal(e.Data) End Sub