SaveInkPic method (DataWindows)
Description
Saves a picture and optionally overlay ink to a file from
an InkPicture control.
Controls
DataWindow type |
Method applies to |
---|---|
PowerBuilder |
DataWindow control |
Syntax
[PowerBuilder]
1 |
integer <span>dwcontrol</span>.<span>SaveInkPic</span> ( string <span>name</span>, long <span>rownumber</span>, string <span>filename</span> , integer <span>format  </span>{, boolean <span>withink</span> } ) |
Argument |
Description |
---|---|
dwcontrol |
A reference to a DataWindow control. |
name |
The name of the InkPicture control from |
rownumber |
The number of the row that contains the |
filename |
A string containing the name and location |
format |
An integer specifying the format in which
|
withink (optional) |
A boolean specifying whether overlay
|
Return Values
Integer. Returns 1 for success and –1
for failure.
Usage
Use the SavInkPic method to save the image
in an InkPicture control in a DataWindow to a file with or without
any ink annotations that have been made to it. By default, the ink
is saved with the image.
Examples
The following example saves the image in an InkPicture
control in row 3 of a DataWindow object into a GIF file without
any ink annotations:
1 |
int li_return<br>string ls_pathname, ls_filename<br> <br>GetFileSaveName("Save As", ls_pathname, & <br> ls_filename, "GIF")<br>li_return = dw_1.SaveInk(inkpic_1, 3, & <br> ls_pathname, 2, false) |