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

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, April 3, 2007 2:48:43 PM(UTC)

dmaciel  
dmaciel

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.
 

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 : Sunday, April 8, 2007 7:48:53 AM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,028

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.

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