public BubbleWordField CreateBubbleWordField(
RasterImage image,
List<FormField> formFields,
LeadRect bounds,
int formPageNumber
)
Public Function CreateBubbleWordField(
ByVal image As RasterImage,
ByVal formFields As List(Of FormField
),
ByVal bounds As LeadRect,
ByVal formPageNumber As Integer) As BubbleWordField
public:
BubbleWordField^ CreateBubbleWordField(
RasterImage^ image,
List<FormField^>^ formFields,
LeadRect^ bounds,
Int32 formPageNumber
)
image
The master form image.
formFields
A FormField list that contains all fields, including the OmrFormField fields within the bounds.
bounds
A LeadRect represents the location of the BubbleWordField to be created.
formPageNumber
Master form page number.
A BubbleWordField field with automatically filled out field values.
If the row count is 26 the field values are filled with alphabets from A to Z and the BubbleWordValueType is set to Character. Otherwise, the field values are filled with numbers from 0 to the row count and the BubbleWordValueType is set to Numerical.
using Leadtools;
using Leadtools.Ocr;
using Leadtools.Forms.Common;
using Leadtools.Forms.Processing;
using Leadtools.Forms.Auto;
using Leadtools.Codecs;
///This example shows how to create a BubbleWordField.
public void AddBubbleWordField()
{
DiskMasterForm diskMasterForm = GetMasterForm("LeadAnswerSheet_Pattern");
FormPages formPages = diskMasterForm.ReadFields();
List<FormField> omrFields = GetOmrFields(formPages);
LeadRect bounds = new LeadRect(225, 5110, 2025, 1030);
//Automatically create BubbleWordField
BubbleWordField bubbleWordField = diskMasterForm.CreateBubbleWordField(diskMasterForm.ReadForm(), omrFields, bounds, 1);
// Set field name
bubbleWordField.Name = "StudentID";
formPages.GetPage(1).Add(bubbleWordField);
// Write fields to master form
diskMasterForm.WriteFields(formPages);
}
Imports Leadtools
Imports Leadtools.Ocr
Imports Leadtools.Forms.Common
Imports Leadtools.Forms.Processing
Imports Leadtools.Forms.Auto
Imports Leadtools.Codecs
''' This example shows how to create a BubbleWordField.
Public Sub AddBubbleWordField()
Dim diskMasterForm As DiskMasterForm = GetMasterForm("LeadAnswerSheet_Pattern")
Dim formPages As FormPages = diskMasterForm.ReadFields()
Dim omrFields As List(Of FormField) = GetOmrFields(formPages)
Dim bounds As LeadRect = New LeadRect(225, 5110, 2025, 1030)
' Automatically create BubbleWordField
Dim bubbleWordField As BubbleWordField = diskMasterForm.CreateBubbleWordField(diskMasterForm.ReadForm(), omrFields, bounds, 1)
' Set field name
bubbleWordField.Name = "StudentID"
formPages.GetPage(1).Add(bubbleWordField)
' Write fields to master form
diskMasterForm.WriteFields(formPages)
End Sub
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.