You can leave the scanner to do it (if supported), setting:
ImageEnView1.IO.TWainParams.AutoBorderDetection := true; ImageEnView1.IO.Acquire();
Otherwise you could assign this task to ImageEn (after acquired the image). You can try:
ImageEnView1.Proc.AutoCrop();
or
ImageEnView1.proc.AutoCrop2();
AutoCrop and AutoCrop2 have several options. You can set them to adapt to your images background. |