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

LoadPicture – PB Docs 2021 – PowerBuilder Library

LoadPicture – PB Docs 2021

LoadPicture

PowerScript function

Description

Loads a picture from a file or blob into an InkPicture
control.

Applies to

InkPicture controls

Syntax

Argument

Description

inkpicname

The name of the InkPicture control into which you want to
load a picture.

t

A string containing the name and location of a file that
contains the picture you want to load into the control.

b

The name of a blob passed by reference that contains the
picture you want to load into the control.

Return value

Integer.

Returns 1 for success and -1 for failure.

Usage

Use the LoadPicture function to load an image into an InkPicture
control.

Examples

The following example loads an image from a file. Since the user
will select a single file, the second argument to GetFileOpenName contains
the file’s path and its name, so the third argument can be ignored:

The following example loads an image from a blob:

See also

LoadInk

ResetInk

ResetPicture

SaveInk

Save


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