LEADTOOLS Support
Imaging
Imaging SDK Questions
Re: two leadrasterview connected ( a kind of panwindow)
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, February 6, 2007 5:08:48 AM(UTC)
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
#2
Posted
:
Wednesday, February 7, 2007 4:04:32 AM(UTC)
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)
Groups: Registered
Posts: 7
It works!!
Thank you very much!!
best regards
Teresa
LEADTOOLS Support
Imaging
Imaging SDK Questions
Re: two leadrasterview connected ( a kind of panwindow)
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.