I checked this issue using the following code and I was not able to see the problem:
+-------------------+
RasterDefaults.DitheringMethod = RasterDitheringMethod.None;
RasterCodecs FormsCodec = new RasterCodecs();
IOcrEngine FormsOcrEngine = OcrEngineManager.CreateEngine(OcrEngineType.Professional, false);
FormsOcrEngine.Startup(FormsCodec, null, System.IO.Path.GetTempPath(), "");
BarcodeEngine FormsBarcodeEngine = new BarcodeEngine();
FormRecognitionEngine RecognitionEngine = new FormRecognitionEngine();
FormProcessingEngine ProcessingEngine = new FormProcessingEngine();
ProcessingEngine.OcrEngine = FormsOcrEngine;
ProcessingEngine.BarcodeEngine = FormsBarcodeEngine;
FormRecognitionAttributes Attributes = new FormRecognitionAttributes();
Attributes.SetData(File.ReadAllBytes(@"..\..\..\Form\Page2.bin"));
FormRecognitionProperties Properties = new FormRecognitionProperties();
Properties = RecognitionEngine.GetFormProperties(Attributes);
ProcessingEngine.LoadFields(@"..\..\..\Form\Page2.xml");
ProcessingEngine.Pages[0].Single(x => x.Name == "Liste").Bounds = new LogicalRectangle(10, 10, 100, 100, LogicalUnit.Pixel);
RasterImage Image = FormsCodec.Load(@"..\..\..\Form\Page2.tif", 1, CodecsLoadByteOrder.BgrOrGray, 1, -1);
RecognitionEngine.OpenMasterForm(Attributes);
RasterImage ImageATraiter = FormsCodec.Load(@"..\..\..\Page2-1.png", 0, CodecsLoadByteOrder.BgrOrGray, 1, 1);
ImageATraiter.ChangeViewPerspective(RasterViewPerspective.TopLeft);
ProcessingEngine.Process(ImageATraiter, null);
+-------------------+
Please recheck the same issue using the above code. If the problem persists, please try to isolate the problem in a small working project (not your full application) and send it to
support@Leadtools.com and mention this forum post in your email.
Note: If you send sample files or any attachments, please put them in a ZIP or RAR file to ensure our server delivers them correctly.
Thanks,
Maen Badwan
LEADTOOLS Technical Support