BBjImageManager::loadImageFromClientJar

Description

In BBj 5.0 and higher, this method loads a BBjImage object from a client-side jar file.

Syntax

Return Value

Method

BBjImage

loadImageFromClientJar(string filename)

Parameters

Variable

Description

filename

Name of the file that contains the image to be loaded.

Return Value

Returns the image as a BBjImage object.

Remarks

Use the full path to the file exactly as specified in the jar file.

Example

rem 'Load a BBjImage from a client-side jar file

rem 'Obtain the instance of the BBjAPI object
let myAPI! = BBjAPI()

rem 'Open the SysGui device
SYSGUI = UNT
OPEN (SYSGUI)"X0"

rem 'Obtain an instance of the BBjSysGui object
let mySysGui! = myAPI!.getSysGui()

rem 'Obtain an instance of the BBjImageManager object
myImageManager! = mySysGui!.getImageManager()

rem 'Load an image from a server-side jar file
myResource$ = "com/basis/bbj/images/demoicon.gif"
myImage! = myImageManager!.loadImageFromClientJar(myResource$)

See Also

BBjAPI

BBjSysGui

BBjImageManager

BBjImage

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