Creates a new OmrAnswerAreaField with automatically filled out field values.
public OmrAnswerAreaField CreateAnswerAreaField(
RasterImage image,
List<FormField> formFields,
LeadRect bounds,
int formPageNumber
)
public:
OmrAnswerAreaField^ CreateAnswerAreaField(
RasterImage^ image,
List<FormField^>^ formFields,
LeadRect^ bounds,
Int32 formPageNumber
)
def CreateAnswerAreaField(self,image,formFields,bounds,formPageNumber):
image
The master form image.
formFields
A FormField list that contains all fields, including the OmrFormField fields within the bounds.
bounds
A LogicalRectangle represents the location of the OmrAnswerAreaField to be created.
formPageNumber
Master form page number.
A OmrAnswerAreaField field with automatically filled out field values.
If the column count is 4 or 5 the field values are filled with alphabets from A to D or A to E respectively. Otherwise, numerical values will be used for Omr field value.
using Leadtools;
using Leadtools.Ocr;
using Leadtools.Forms.Common;
using Leadtools.Forms.Processing;
using Leadtools.Codecs;
using Leadtools.Forms.Auto;
///This example shows how to create a OmrAnswerAreaField.
public void AddOmrAnswerAreaField()
{
DiskMasterForm diskMasterForm = GetMasterForm("LeadAnswerSheet");
LeadRect bounds = new LeadRect(240, 975, 390, 1925);
FormPages formPages = diskMasterForm.ReadFields();
List<FormField> omrFields = GetOmrFields(formPages);
// Automatically create OmrAnswerAreaField
OmrAnswerAreaField omrAnswerAreaField = diskMasterForm.CreateAnswerAreaField(diskMasterForm.ReadForm(), omrFields, bounds, 1);
// Set field name
omrAnswerAreaField.Name = "AnswerArea 1-25";
formPages.GetPage(1).Add(omrAnswerAreaField);
// Write fields to master form
diskMasterForm.WriteFields(formPages);
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.