SaveInkPic – PB Docs 150

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]

Argument

Description

dwcontrol

A reference to a DataWindow control.

name

The name of the InkPicture control from
which you want to save the picture.

rownumber

The number of the row that contains the
picture to be saved.

filename

A string containing the name and location
of a file that will hold the picture in the control.

format

An integer specifying the format in which
the picture is to be saved. Values are:

  • 0 – BMP (bitmap)

  • 1 – JPEG (Joint Photographic Experts Group)

  • 2 – GIF (Graphics Interchange Format)

  • 3 – TIFF (Tagged Image File Format)

  • 4 – PNG (Portable Network Graphics)

withink (optional)

A boolean specifying whether overlay
ink should be saved with the picture. Values are:

  • True – overlay ink is
    saved with the picture (default)

  • False – overlay ink
    is not saved with the picture

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:

See Also


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x