This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, April 3, 2007 2:48:43 PM(UTC)
Groups: Registered
Posts: 1
When I set the Viewer property in the RasterImagePanViewer class I get erratic behavior. My application seems to get locked up and doesn't return.
#2
Posted
:
Sunday, April 8, 2007 7:48:53 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
I tried the following code in a small test application and it worked fine:
RasterCodecs.Startup()
Dim codecs As RasterCodecs = New RasterCodecs()
RasterImageViewer1.Size = New Size(Size.Width, Size.Height)
RasterImageViewer1.Image = codecs.Load("d:\program files\LEAD Technologies\LEADTOOLS 15\Images\image1.cmp")
RasterCodecs.Shutdown()
panViewer.Dock = DockStyle.Top
panViewer.BackColor = Drawing.Color.Cornsilk
panViewer.ClipCursor = True
panViewer.BorderStyle = BorderStyle.Fixed3D
panViewer.BringToFront()
panViewer.RectangleColor = Drawing.Color.Blue
panViewer.ImageColor = Drawing.Color.FromArgb(128, 0, 0, 0)
panViewer.Cursor = Cursors.Hand
panViewer.Viewer = RasterImageViewer1
Controls.Add(panViewer)
Controls.Add(RasterImageViewer1)
RasterImageViewer1.BringToFront()
Please try this code in a small test application and see if it works for you. If it does not work, please send me this test application in a ZIP file and I will check it for you.
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.