Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Syntax 1 For InkPicture controls – PB Docs 126 – PowerBuilder Library

Syntax 1 For InkPicture controls – PB Docs 126

Syntax 1 For InkPicture controls

Description

Saves a picture and optionally overlay ink to a file or blob
from an InkPicture control.

Controls

InkPicture controls

Syntax

Argument

Description

inkpicname

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

t

A string containing the name and location
of the file into which the picture will be saved.

b

The name of a blob passed by reference
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 Save function to save the image
in an InkPicture control to a file or blob 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 and its ink annotations in bitmap format into a blob, and
attempts to update the image in the database:

The following example saves the image in an InkControl
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
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x