Available in LEADTOOLS Imaging Pro, Vector, Document, and Medical Imaging toolkits. |
#include "ltwrappr.h"
LScreenCapture::LScreenCapture()
LScreenCapture::LScreenCapture(pLBitmap)
LScreenCapture::LScreenCapture(pScreenCapture)
LBitmapBase * pLBitmap; |
/* pointer to a LEAD bitmap object */ |
LScreenCapture * pScreenCapture; |
/* pointer to a capture object */ |
Constructs and initializes the different member variables of the LScreenCapture object.
Parameter |
Description |
pLBitmap |
Pointer to a LEAD bitmap object to be used for capturing. |
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
LTDIS For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
Win32, x64.
See Also
Functions: |
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; }