Creates a new object of type ITemplateForm.
public ITemplateForm CreateTemplateForm()
A new object of type ITemplateForm created internally.
ITemplateForm objects can only be created using this method.
Note
The following example is a snippet of a larger example project. To run the larger example project, follow the work flow laid out in the OMREngine example. You can also download the complete Visual Studio 2017 project.
using Leadtools;
using Leadtools.Barcode;
using Leadtools.Codecs;
using Leadtools.Forms.Processing.Omr;
using Leadtools.Ocr;
public static ITemplateForm CreateNewTemplate(RasterImage templateImage, OmrEngine engine)
{
ITemplateForm template = engine.CreateTemplateForm();
template.Name = "Example Template";
// add each page in the source image to the template
// templates can be constructed from any number of rasterimages from different sources
for (int i = 0; i < templateImage.PageCount; i++)
{
templateImage.Page = i + 1;
template.Pages.AddPage(templateImage);
}
return template;
}