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 BubbleWordFieldBubbleWordField bubbleWordField = diskMasterForm.CreateBubbleWordField(diskMasterForm.ReadForm(), omrFields, bounds, 1);// Set field namebubbleWordField.Name = "StudentID";formPages.GetPage(1).Add(bubbleWordField);// Write fields to master formdiskMasterForm.WriteFields(formPages);}
Imports LeadtoolsImports Leadtools.OcrImports Leadtools.Forms.CommonImports Leadtools.Forms.ProcessingImports Leadtools.Forms.AutoImports 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 BubbleWordFieldDim bubbleWordField As BubbleWordField = diskMasterForm.CreateBubbleWordField(diskMasterForm.ReadForm(), omrFields, bounds, 1)' Set field namebubbleWordField.Name = "StudentID"formPages.GetPage(1).Add(bubbleWordField)' Write fields to master formdiskMasterForm.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
