SaveInkPic
method (DataWindows)
Description
Saves a picture and optionally overlay ink to a file from an
InkPicture control.
Applies to
|
DataWindow type |
Method applies to |
|---|---|
|
PowerBuilder |
DataWindow control |
Syntax
PowerBuilder
|
1 |
integer dwcontrol.SaveInkPic ( string name, long rownumber, string filename , integer format {, boolean withink } ) |
|
Argument |
Description |
|---|---|
|
dwcontrol |
A reference to a DataWindow control. |
|
name |
The name of the InkPicture control from which you |
|
rownumber |
The number of the row that contains the picture to be |
|
filename |
A string containing the name and location of a file |
|
format |
An integer specifying the format in which the picture 0 — BMP 1 — JPEG (Joint Photographic Experts 2 — GIF (Graphics Interchange 3 — TIFF (Tagged Image File 4 — PNG (Portable Network |
|
withink (optional) |
A boolean specifying whether overlay ink should be True — overlay False — |
Return value
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 2 3 4 5 6 |
int li_return string ls_pathname, ls_filename GetFileSaveName("Save As", ls_pathname, & ls_filename, "GIF") li_return = dw_1.SaveInk(inkpic_1, 3, & ls_pathname, 2, false) |
See also