Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.24
LEADTOOLS Multimedia API Help

IltmmCameraControl::GetRange Example for C++

Show in webframe

void GetCameraControlInfo(IltmmCameraControl *pCamera)
{
   long lMin, lMax, lSteppingDelta, lDefault, lCapsFlags, lVal, lFlag;

   if (pCamera != NULL)
   {
      // get the range info
      pCamera->GetRange(ltmmCameraControl_Zoom, &lMin, &lMax, &lSteppingDelta, &lDefault, &lCapsFlags);

      // get the zoom and set it to the middle range value
      pCamera->Get(ltmmCameraControl_Zoom, &lVal, &lFlag);
      lVal = (lMax + lMin) / 2;
      pCamera->Set(ltmmCameraControl_Zoom, lVal, lFlag);
   }
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.