This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Friday, March 15, 2013 10:12:35 PM(UTC)
Groups: Registered
Posts: 6
I'musing medical image viewer(v17, vc)
howto reset zoom and panning?
#2
Posted
:
Monday, March 18, 2013 7:47:26 AM(UTC)
Groups: Registered
Posts: 256
If you are using CDLL, you need to call ImageViewerCell->SetCellScaleMode() and set it to Normal.
To reset panning, you will need to call ImageViewerCell->AddAction( CONTAINER_ACTION_OFFSET , 0);
#3
Posted
:
Tuesday, March 19, 2013 7:51:57 PM(UTC)
Groups: Registered
Posts: 6
I implement "fit window" button.
click after call your code ..
but medical image viewer(cell) no effect.
#4
Posted
:
Wednesday, March 20, 2013 5:16:50 AM(UTC)
Groups: Registered
Posts: 256
You can Fit the image by setting the cell’s scale to 100. The code will be something as follows:
+---------+
LImageViewerCell* hCellWnd = NULL;
hCellWnd = m_ImageViewer.GetCellHandle(0, 0);
hCellWnd->SetCellScale(0,100,CELL_APPLYTOTHIS);
hCellWnd->UpdateCellView(0);
+---------+
#5
Posted
:
Wednesday, March 20, 2013 4:13:37 PM(UTC)
Groups: Registered
Posts: 6
Thank you for your reply.
zoom reset complete.
but panning(offset) not reset.
hCellWnd->AddAction(CONTAINER_ACTION_OFFSET, 0);
#6
Posted
:
Wednesday, March 20, 2013 9:56:38 PM(UTC)
Groups: Registered
Posts: 256
Please try the following code to reset the panning:
=================
DISPOFFSETACTIONPROPS OffsetProp;
hCellWnd->GetActionProperties(CONTAINER_ACTION_OFFSET,0, &OffsetProp,CONTAINER_ACTION_CELLLEVEL);
OffsetProp.nXOffset = 0;
OffsetProp.nYOffset = 0;
hCellWnd->SetActionProperties(CONTAINER_ACTION_OFFSET,0, &OffsetProp,CONTAINER_ACTION_CELLLEVEL);
hCellWnd->UpdateCellView(0);
=================
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.