This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Friday, April 14, 2006 7:12:44 AM(UTC)
Groups: Registered
Posts: 1
Hi,
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)
Thanks
#2
Posted
:
Monday, April 17, 2006 12:17:01 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Hello,
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.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
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.