Renamed Types
The Leadtools.Ocr assembly/namespace has been renamed Leadtools.Document. Following is a list of the new names for all the types in Leadtools.Document:
New Types
The following types have been added to LEADTOOLS For .NET v15:
Type | Description |
---|---|
RasterDocumentCodePage | Values that specify the code page |
RasterDocumentDrawZoneOptions | Contains options used to display zones or draw them |
RasterDocumentRecognizeStatusCallback | The page recognition status event |
RasterDocumentUserDictionaryItem | Contains user dictionary item information |
New Members
The following members have been added to existing classes in v15:
Type | Description |
---|---|
RasterDocumentEngine.Instance | Gets an instance of the document engine |
RasterDocumentEngine.SelectZoneByPoint | Draws a selection rectangle around the zone located at the specified point |
RasterDocumentEngine.SelectZone | Selects or deselects the specified zone and draws it in the specified Graphics object. |
RasterDocumentEngine.GetOrientationSlope | Finds the orientation slope for the specified page |
RasterDocumentEngine.AvailableOutputFileFormats | Gets the available output file formats for the OCR document engine. |
RasterDocumentEngine.RecognitionStatistic | Gets the last recognition status |
RasterDocumentVerifyEventArgs.ToBeChecked | The suggested word for the recognized word. |
RasterDocumentPageInfo.Size | Gets the size of a specified page in the OCR document |
RasterDocumentVerifyEventArgs.VerifyCode | The user verification suggestion code for the current suggested word |
RasterDocumentEngine.Verify | Reports the suggested word for the last word recognized in a specific zone |
RasterDocumentUserDictionaryItem.Attribute | The User dictionary attribute that is used when adding an item into the dictionary |
RasterDocumentDrawZoneOptions.Pen | Gets or sets the Pen object to be used when drawing the zones |
RasterDocumentDrawZoneOptions.SelectedPen | Gets or sets the Pen object to be used when drawing the selected zone |
RasterDocumentDrawZoneOptions.ZoomPercent | Gets or sets the Zone Zoom Percent |
RasterDocumentDrawZoneOptions.Offset | Gets or sets the Zone scroll position |
RasterDocumentDrawZoneOptions.Visible | Specifies whether page zones will be drawn |
Removed Types
The following types have been removed in v.15:
Type | Description |
---|---|
RasterOcrEnumOutputFileFormats | Use RasterDocumentEngine.AvailableOutputFileFormats instead |
RasterOcrVerification | Use |
RasterOcrRecognizeStatus | Use RasterDocumentRecognizeStatusCallback instead |
RasterOcrRecognizeStatusEventArgs | Use RasterDocumentRecognizeStatusCallback instead |
RasterOcrEnumOutputFileFormatsEventArgs | Use RasterDocumentEngine.AvailableOutputFileFormats instead |
RasterOcrProgress | Use |
RasterOcrFontDefine | Internal use type removed |
Removed Members
The following members have been removed in v.15:
Member | Description |
---|---|
RasterOcrEngine.StartUp | Use RasterDocumentEngine.Startup instead |
RasterOcrEngine.ShutDown | Use RasterDocumentEngine.Shutdown instead |
RasterOcrEngine.GetZonesCount | Use RasterDocumentEngine.GetZoneCount instead |
RasterOcrEngine.ShowZoneGridLines | Use RasterDocumentEngine.ShowZoneGridlines instead |
RasterOcrEngine.RecognizeModuleTradeOff | Use RasterDocumentEngine.RecognizeModuleTradeoff instead |
RasterOcrEngine.MorEnableFaxMode | Use RasterDocumentEngine.EnableMorFaxMode instead |
RasterOcrEngine.HandPrintOptions | Use RasterDocumentEngine.HandprintOptions instead |
RasterOcrEngine.EnableSubSystem | Use RasterDocumentEngine.EnableSubsystem instead |
RasterOcrEngine.SpellLanguageID | Use RasterDocumentEngine.SpellLanguageId instead |
RasterOcrEngine.OutputFileFormats | Use RasterDocumentEngine.AvailableOutputFileFormats instead |
RasterOcrEngine.EnumOutputFileFormats | Use RasterDocumentEngine.AvailableOutputFileFormats instead |
RasterOcrEngine.ZonePen | Use RasterDocumentDrawZoneOptions.Pen instead |
RasterOcrEngine.SelectedZonePen | Use RasterDocumentDrawZoneOptions.SelectedPen instead |
RasterOcrEngine.ZoneZoomPercent | Use RasterDocumentDrawZoneOptions.ZoomPercent instead |
RasterOcrEngine.ZoneScrollPosition | Use RasterDocumentDrawZoneOptions.Offset instead |
RasterOcrEngine.ZoneRectangle | Not needed anymore |
RasterOcrEngine.EnableShowZones | Use RasterDocumentDrawZoneOptions.Visible instead |
RasterOcrEngine.PaintProperties | Pass as a parameter to RasterDocumentEngine.DrawPage instead |
RasterOcrEngine.SourceRectangle | Pass as a parameter to RasterDocumentEngine.DrawPage instead |
RasterOcrEngine.SourceClipRectangle | Pass as a parameter to RasterDocumentEngine.DrawPage instead |
RasterOcrEngine.DestinationRectangle | Pass as a parameter to RasterDocumentEngine.DrawPage instead |
RasterOcrEngine.DestinationClipRectangle | Pass as a parameter to RasterDocumentEngine.DrawPage instead |
RasterOcrEngine.DictionaryFileName | Pass as a parameter to RasterDocumentEngine.SetUserDictionary instead |
RasterOcrEngine.DictionaryItemAttribute | Use RasterDocumentUserDictionaryItem.Attribute instead |
RasterOcrEngine.RecognizeStatus | Use the RasterDocumentRecognizeStatusCallback parameter to RasterDocumentEngine.Recognize instead |
RasterOcrEngine.OcrStatus | Use RasterDocumentEngine.RecognitionStatistic instead |
RasterOcrVerificationEventArgs.Word | Use RasterDocumentVerifyEventArgs.ToBeChecked instead |
RasterOcrLanguage.Lappish | No longer supported |
RasterOcrPageInfo.Width | Use RasterDocumentPageInfo.Size instead |
RasterOcrPageInfo.Height | Use RasterDocumentPageInfo.Size instead |
RasterOcrException.GetCodeMessage | Internal use method removed |
RasterOcrException.SetCodeMessage | Internal use method removed |
RasterOcrZoneData.VerifyCode | Use RasterDocumentVerifyEventArgs.VerifyCode instead |
RasterOcrZoneData.DisableEvents | Use RasterDocumentEngine.DisableEvents instead |
RasterOcrZoneData.EnableEvents | Use RasterDocumentEngine.EnableEvents instead |
RasterOcrZoneData.Verification | Use RasterDocumentEngine.Verify instead |
Renamed Members
The following members have been renamed in v.15:
Changed Members
The following members have been changed in v.15:
Member | Description |
---|---|
RasterDocumentEngine.FindZones | New parameters added |
RasterDocumentEngine.GetRecognizedCharacters | Method return value changed to List<RasterDocumentRecognizedCharacters> |
RasterDocumentEngine.GetRecognizedWords | Method return value changed to List<RasterDocumentRecognizedWords> |
RasterDocumentEngine.DrawPage | New parameters added |
RasterDocumentEngine.DictionaryDefaultSection | Property is readonly now |
RasterDocumentEngine.SetUserDictionary | New parameters added |
RasterDocumentEngine.GetUserDictionarySectionItem | New parameters added |
RasterDocumentEngine.Recognize | New parameters added |
Properties Changed into Methods
The following properties have changed into methods in v.15:
Version 14.5 | Version 15 |
---|---|
RasterOcrCharacterOptions.FontNames | RasterDocumentCharacterOptions.GetFontNames and RasterDocumentCharacterOptions.SetFontNames |