LScreenCapture::LScreenCapture

#include "ltwrappr.h"

LScreenCapture::LScreenCapture(void)

L_VOID LScreenCapture::LScreenCapture(pLBitmap)

L_VOID LScreenCapture::LScreenCapture(pScreenCapture)

LBitmapBase L_FAR * pLBitmap;

/* pointer to a LEAD bitmap object */

LScreenCapture L_FAR * 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
LTSCR

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

LScreenCapture::~LScreenCapture, Class Members

Example

This is an example for LScreenCapture::LScreenCapture(void):

L_VOID  TestFunction()
{
    // this will call the default constructor and destructor when it is out of scope
   LScreenCapture screenCapture;

   //…
}

This is an example for LScreenCapture::LScreenCapture(pLBitmap):

L_VOID  TestFunction()
{
   LBitmap LeadBitmap;
   LScreenCapture screenCapture(&LeadBitmap);

   //…
}

This is an example for LScreenCapture::LScreenCapture(pScreenCapture):

L_VOID CaptureSample()
{
   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);
         //....

      }
   }
}