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



Last Go to last post Unread Go to first unread post
#1 Posted : Sunday, January 9, 2011 11:45:21 PM(UTC)

Groups: Registered
Posts: 1

I need set some action like this

            memset (&WLAttr, 0, sizeof(DISPWLEVELACTIONPROPS));
            WLAttr.DispContainerActionProps.uStructSize = sizeof(DISPWLEVELACTIONPROPS);
            m_LImageViewer.GetActionProperties(CONTAINER_ACTION_WINDOWLEVEL, 0, 0, &WLAttr, CONTAINER_ACTION_CELLLEVEL);
            WLAttr.nWidth = pImage->nWidth;
            WLAttr.nCenter = pImage->nCenter;
            m_LImageViewer.SetActionProperties(CONTAINER_ACTION_WINDOWLEVEL, 0, 0, &WLAttr, CONTAINER_ACTION_CELLLEVEL);

            // Reset Cell properties
            memset (&ScaleAttr, 0, sizeof(DISPSCALEACTIONPROPS));
            ScaleAttr.DispContainerActionProps.uStructSize = sizeof(DISPSCALEACTIONPROPS);
            m_LImageViewer.GetActionProperties(CONTAINER_ACTION_SCALE, 0, 0, &ScaleAttr, CONTAINER_ACTION_CELLLEVEL);
            ScaleAttr.uScale = m_nViewScale[m_nCamDevice];
            int nHW  = max(m_ImgSizeX, m_ImgSizeY);
            ScaleAttr.uScale = min(m_DstRect.Width(), m_DstRect.Height()) * 100 / nHW;
            m_LImageViewer.SetActionProperties(CONTAINER_ACTION_SCALE, 0, 0, &ScaleAttr, CONTAINER_ACTION_CELLLEVEL);

            // Modify offset
            memset (&Props, 0, sizeof(DISPOFFSETACTIONPROPS));
            Props.DispContainerActionProps.uStructSize = sizeof(DISPOFFSETACTIONPROPS);
            m_LImageViewer.GetActionProperties (CONTAINER_ACTION_OFFSET, 0, 0, &Props, CONTAINER_ACTION_CELLLEVEL);
            Props.nXOffset = 0;
            Props.nYOffset = 0;
            m_LImageViewer.SetActionProperties (CONTAINER_ACTION_OFFSET, 0, 0, &Props, CONTAINER_ACTION_CELLLEVEL);

as I know ver 16, 17 have BeginUpdate and EndUpdate, but 15 is not.
How can I stimulate this function in ver 15.

thank you.

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 : Monday, January 10, 2011 6:24:28 AM(UTC)

Adnan Ismail  

Groups: Guests
Posts: 3,022

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

Do you want this to reduce flickering while updating the actions?
If yes, I'm afraid that we didn't have a similar feature in v15. This was only added in later versions. If you would like to consider upgrading, please visit our website and download the free evaluation edition of LEADTOOLS 17 to test all the features you need before making a decision.
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.066 seconds.