Beispiel #1
0
 private void Twscan()
 {
     ClsTwain.Scanbool = true;
     Himg.Scanms       = comBoxScanMode.SelectedIndex;
     Himg._Duplexpage(chkDoublePages.Checked);
     if (comPagesSize.SelectedIndex == 1)
     {
         if (rdVerPages.Checked)
         {
             Himg._SetimgFx(1, 0);
         }
         else
         {
             Himg._SetimgFx(0, 0);
         }
     }
     else if (comPagesSize.SelectedIndex == 2)
     {
         Himg._Setpagesize(2);
     }
     else if (comPagesSize.SelectedIndex == 0)
     {
         if (rdVerPages.Checked)
         {
             Himg._SetimgFx(2, 0);
         }
         else
         {
             Himg._SetimgFx(3, 0);
         }
     }
     if (rdColorRed.Checked)
     {
         Himg._Setcolor(24);
     }
     else if (rdColorGray.Checked)
     {
         Himg._Setcolor(8);
     }
     else
     {
         Himg._Setcolor(24);
     }
     Himg._Setdpi(Convert.ToInt32(comBoxDpi.Text.Trim()));
     Himg._Twainscan(1);
 }