sc_WindowToImageFile( nHWnd As Number, cFilename As String ) As Boolean
Captures the image of a window specified by a window handle. Saves a captured image to a designated graphics file assuming it bears a supported extension. Valid file types: BMP, PNG, JPG, TIF, GIF.
sc_WindowToPrinter( nHWnd As Number [, cPrinterName As String ] ) As Boolean
Captures the image of a window specified by a window handle. Sends a captured image to a printer. The default printer is used if the cPrinterName is omitted.
sc_WindowToClipboard( nHWnd As Number ) As Boolean
Captures the image of a window specified by a window handle. Places a captured image on the clipboard.
sc_SetScale( nPercent As Number ) As Boolean
Scales a captured image. Measured in percents. The valid range is from 10 to 1000. The default is 100%.
sc_SetCaption( cCaption As String ) As Boolean
A description to be displayed above subsequently captured images. Send an empty string to clear.
sc_SetBorder( lBorder As Boolean )
Places a thin border around a captured image.
sc_SetClip( nLeft, nTop, nWidth, nHeight ) As Boolean
Crops a captured image except a given rectangle. Call SC_RESETCLIP() to cancel a image cropping.
sc_ResetClip()
Cancels captured image cropping. See SC_SETCLIP.
sc_SetSafetyOff()
Automatically overwrites existing file when SC_WINDOWTOIMAGEFILE() is called.
sc_SetSafetyDefault()
Based on a current SET("Safety") setting, displays a dialog box before overwriting an existing file when SC_WINDOWTOIMAGEFILE() is called.
sc_SetOriginMode( nOriginMode As Number )
Sets the capture origin. Choose 0 for a whole window, or 1 for the client area. See "Capturing a VFP control's image" usage example.
sc_FindWindowByText( cWindowCaption [, lAllProcesses [, lCaseInsensitive ]] ) As Number
Returns window handle for a window specified by the caption. By default searches through windows belonging to the current process only. When lAllProcesses=.T., searches through all windows. Set lCaseInsensitive=.T. for case-insensitive search.
sc_SetMetaProperty( nPropertyTag As Number, cPropertyValue As String ) As Boolean
Sets a meta property to be written to captured images in subsequent SC_WINDOWTOIMAGEFILE calls. Note that meta properties are mainly supported by JPEG format, and to lesser extent by PNG and TIFF formats. Bitmaps and GIFS do not support meta properties.
sc_RemoveMetaProperty( nPropertyTag As Number )
Removes a single property from the list of meta properties to be written to captured images in subsequent SC_WINDOWTOIMAGEFILE calls.
sc_ClearMetaProperties()
No meta properties will be written to captured images in subsequent SC_WINDOWTOIMAGEFILE calls.
sc_OpenFile( cFilename As String ) As Boolean
Opens a specified file using default application the Windows assigned for this file type.
* * *
Note that any SET function affects all subsequently captured images, until the next time this function is called, or the library is reopen. For example, when the border is set on, all images captured afterwards will have a border.
* * *
Pending functions.
sc_ClipboardToImageFile( cFilename As String ) As Boolean
Saves CF_DIB content of the clipboard to a specified image file. A CF_DIB content must exists. See SC_CLIPBOARDHASIMAGE(). Status: ready for the next release.
sc_ClipboardHasImage() As Boolean
Returns .T. when the clipboard has image content (CF_DIB). Status: ready for the next release.
sc_MoveToForegound( nHWnd As Number )
Moves a given window to the foreground. Status: ready for the next release.
sc_WindowToPDFFile( nHWnd As Number, cFilename As String ) As Boolean
Captures the image of a window specified by a window handle. Saves a captured image to a designated PDF file. Based on Haru PDF Library. Status: working prototype, to be tested.