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, February 6, 2007 5:08:48 AM(UTC)

Teresa  
Teresa

Groups: Registered
Posts: 7


Dear all,

I am working with two leadrasterview in a way that the user writes his annotations and image modifications in the first one and sees the changes also in the other one. ( a kind of panwindow)

My question is:

is there any way of getting these two rasterviews connected so all changes are automaticaly also updated in the other one, or do i have to get everytime the pixel information and write the same thing everytime the mouse is clicked down?

I am using VB6 and 14 version

Thank you very much in advance

best regards

 

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 : Wednesday, February 7, 2007 4:04:32 AM(UTC)

Qasem Lubani  
Guest

Groups: Guests
Posts: 3,022

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


Try using the following code snippet:


 


 


Sub CopyTheChange()


   LEADRasterView2.Raster.Bitmap = LEADRasterView1.Raster.Bitmap


   If Not (RasterAn2 Is Nothing) Then


      RasterAn2.AnnParentRasterView = LEADRasterView2


      RasterAn2.AnnUserMode = ANN_USERMODE_DESIGN


      RasterAn2.AnnContainer = 0


      RasterAn2.AnnContainer = RasterAnn.AnnContainer


   End If


End Sub


 


Private Sub RasterAnn_OnAnnChange(ByVal hAnnObject As Long)


   CopyTheChange


End Sub


 


Private Sub LEADRasterView1_Change(ByVal nChange As Long, ByVal nReserved1 As Long, ByVal nReserved2 As Long)


   CopyTheChange


End Sub

 
#3 Posted : Wednesday, February 7, 2007 4:20:22 AM(UTC)

Teresa  
Teresa

Groups: Registered
Posts: 7


It works!!

Thank you very much!!

best regards

Teresa

 
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.062 seconds.