GetDataAsBitmap

Description

Retrieves the data in the control as a standard Windows bitmap that is compatible with the Picture control and Windows desktop applications.

Applies to

Signature controls

Syntax

Integer controlname.GetDataAsBitmap ( data )

Argument

Description

controlname

The name of the control for which you want to retrieve the data

data

The blob in which the bitmap data is saved

Returns

Integer. Returns 1 for success and a negative integer for failure.

Usage

The GetDataAsBitmap function returns both typed and freehand drawing or writing from a signature control as a bitmap in a blob.

Examples

Example 1

The following example gets unformatted data from a Signature control as a bitmap and writes it to a file. It also displays the bitmap in a Picture control:

blob lblb_bmp
integer li_file, li_rtn

li_rtn = sig_1.GetDataAsBitMap(lblb_bmp)
sle_1.text = string(li_rtn)

li_file = FileOpen("\My Documents\testi.bmp", &
   StreamMode!, Write!, LockWrite!, Replace!)

FileWrite( li_file, lblb_bmp )
FileClose( li_file )

p_1.setpicture(lblb_bmp)

See also