FZ_FormBase.ScreenCapture

Performs a screen capture

Public Shared Function ScreenCapture( _
   ByVal fileName As String _
) As Integer

Parameters
fileName
File name to store the capture image
The file name must be specified as an absolute path.
Input

Return Value
Returns 0 when the capture image saving succeeded.
Otherwise returns a non-zero value.

Description
Performs a screen capture. Saves it in BMP format to the specified file.
The capture is executed for a full screen.

Example
   Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click
        ' Get the system data.
        Dim sysData As Captuer_SystemData = New Captuer_SystemData
        sysData.Load()

        ' Get the save path of capture image.
        Dim directory As String = sysData.captureDirectory
        ' Check the save path of capture image.
        If directory.EndsWith("\") = False Then
            directory = directory + "\"
        End If

        ' Save a capture image
        ScreenCapture(directory+"abcd.bmp")
 
   End Sub