LScreenCapture::LScreenCapture

#include "ltwrappr.h"

LScreenCapture::LScreenCapture()

LScreenCapture::LScreenCapture(pLBitmap)

LScreenCapture::LScreenCapture(pScreenCapture)

Constructs and initializes the different member variables of the LScreenCapture object.

Parameters

LBitmapBase * pLBitmap

Pointer to a LEAD bitmap object to be used for capturing.

LScreenCapture * pScreenCapture

Pointer to a capture object.

Returns

None.

Comments

LScreenCapture::LScreenCapture(void) is a constructor for the LScreenCapture class.

LScreenCapture::LScreenCapture(pLBitmap) constructs and initializes the LScreenCapture object with the passed LBitmapBase object pointer.

LScreenCapture::LScreenCapture(pScreenCapture) constructs and initializes the LScreenCapture object with the passed LScreenCapture object. This will copy the properties and settings from the specified object. This constructor does not copy the reference to an associated LBitmapBase object.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Example

// This is an example for LScreenCapture::LScreenCapture(void): 
 
L_INT LScreenCapture__LScreenCaptureExample_1() 
{ 
    // this will call the default constructor and destructor when it is out of scope 
   LScreenCapture screenCapture; 
 
   //… 
 
   return SUCCESS; 
} 
 
// This is an example for LScreenCapture::LScreenCapture(pLBitmap): 
 
L_INT LScreenCapture__LScreenCaptureExample_2() 
{ 
   LBitmap LeadBitmap; 
   LScreenCapture screenCapture(&LeadBitmap); 
 
   //... 
 
   return SUCCESS; 
} 
 
// This is an example for LScreenCapture::LScreenCapture(pScreenCapture): 
 
L_INT LScreenCapture__LScreenCaptureExample_3() 
{ 
   L_INT nRet; 
   LScreenCapture screenCapture; 
   LEADCAPTUREOPTION CaptureOptions; 
 
   nRet = screenCapture.GetCaptureOptions(&CaptureOptions); 
   if(nRet == SUCCESS) 
   { 
      CaptureOptions.nHotKey = VK_F10; 
      // Change the options for the original screen capture object 
      nRet = screenCapture.SetCaptureOptions(&CaptureOptions); 
      if(nRet == SUCCESS) 
      { 
         // Create an instance using the new options directly 
         LScreenCapture MyCapture(&screenCapture); 
         //.... 
 
      } 
      else 
         return nRet; 
   } 
   else 
      return nRet; 
 
   return SUCCESS; 
} 
Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.