AcquisitionBeforeTwainDataTransfer Event |
Namespace: Atalasoft.Twain
private void acquisition_BeforeTwainDataTransfer(object sender, TwainDataImageInfoArgs e) { // Only scan 1-bit images. if (e.ImageInfo.PixelType != ImagePixelType.BlackAndWhite) e.Cancel = true; }
Private Sub acquisition_BeforeTwainDataTransfer(ByVal sender As Object, ByVal e As TwainDataImageInfoArgs) ' Only scan 1-bit images. If e.ImageInfo.PixelType <> ImagePixelType.BlackAndWhite Then e.Cancel = True End If End Sub