Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#1 Posted : Friday, April 14, 2006 7:12:44 AM(UTC)

Groups: Registered
Posts: 1


I am trying to perform zone zoom in......have a few problems.

Don't understand RasterOcr.ZoneZoomPercent property - haw to apply it???

I tried with ZoomToRectangle but it not exacly what I wanted!

Can anyone explain me how and what this code work out? I tried to execute it but nothing happened!

_zonePen = New Pen(Color.Gray, 2)

_zonePen.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid

_rasterOcr.ZonePen = _zonePen

_selzonePen = New Pen(Color.Blue, 2)

_selzonePen.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid

_rasterOcr.SelectedZonePen = _selzonePen

_viewer.RasterOcr = _rasterOcr

_rasterOcr.SourceRectangle = New Rectangle(0, 0, _rasterOcr.GetPageInfo(_activePageIndex).Width , _rasterOcr.GetPageInfo(_activePageIndex).Height )

_rasterOcr.SourceClipRectangle = New Rectangle(0, 0, 0, 0)

_rasterOcr.DestinationRectangle = New Rectangle(0, 0, _rasterOcr.GetPageInfo(_activePageIndex).Width - , _rasterOcr.GetPageInfo(_activePageIndex).Height )

_rasterOcr.DestinationClipRectangle = New Rectangle(0, 0, 0, 0)

_rasterOcr.ZoneScrollPosition = New Point(0, 0)

_rasterOcr.ZoneZoomPercent = 100

Dim tmpGraph As Graphics = _viewer.CreateGraphics()

_rasterOcr.DrawPage(tmpGraph, _activePageIndex)



Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, April 17, 2006 12:17:01 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)


The RasterOcr.ZoneZoomPercent property specifies the Zone zoom percent. The default value is 100 which mean showing the zones in normal size.
This property will be used when drawing the OCR page when using the RasterOcr.DrawPage Method.

However, you can use the ZoomToRectangle method to zoom your zones. I am attaching a small VB.Net project that shows how to draw a rectangle and call the ZoomToRectangle method.

Please check the project and let me know if this helps.

Maen Badwan
LEADTOOLS Technical Support
File Attachment(s):
DotNet CenterZoom.zip (9kb) downloaded 40 time(s).
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.060 seconds.