BBjImageManager::loadImageFromClientURL

Description

In BBj 20.0 and higher, this method loads a BBjImage object from a URL that can be accessed from the client.

Syntax

Return Value

Method

BBjImage

loadImageFromClientURL(string url)

Parameters

Variable

Description

url

The URL to be loaded.

Return Value

Returns the image as a BBjImage object.

Remarks

The URL must be accessible from the client.

Example

rem ' loadImageFromClientURL

sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
imagemanager! = sysgui!.getImageManager()
image! = imagemanager!.getDefaultIcon()
image! = imagemanager!.loadImageFromFile("BBj.png",err=*next)
url$ = "https://basis.cloud/wp-content/uploads/2023/10/BBjlogo.jpg"
image! = imagemanager!.loadImageFromClientURL(url$)
image! = imagemanager!.loadImageFromServerURL(url$)
image! = imagemanager!.loadImageFromURL(url$)
imagemanager!.setDefaultIcon(image!)
window! = sysgui!.addWindow(100,100,225,225,"loadImageFromClientURL",$00090003$,$$)
window!.setCallback(window!.ON_CLOSE,"EOJ")
window!.addImageCtrl(101,25,25,image!.getWidth(),image!.getHeight(),image!)
process_events

eoj:
release

See Also

BBjAPI

BBjSysGui

BBjImageManager

BBjImage

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.