BBjImageManager

Creation Path


BBjAPI

|

+--BBjSysGui

|

+--BBjImageManager

 

Description

In BBj 5.0 and higher, the BBjImageManager object is used to create BBjImage objects.

Creation

The BBjImageManager object is accessed using the following BBjSysGui method:

 

Return Value

Method

BBjImageManager

getImageManager()

Methods of BBjImageManager

Return Value

Method

int

addImageList(int imageWidth, BBjImage image!)

int

getCacheSize()

BBjImage

getDefaultIcon()

int

getImageCount(string filename)

BBjImage

loadImageFromBytes(string binary)

BBjImage

loadImageFromClientJar(string filename)

BBjImage

loadImageFromClientURL(string url)

BBjImage

loadImageFromFile(string filename)

BBjImage

loadImageFromFile(string filename, int index)

BBjImage

loadImageFromImageList(int id, int index)

BBjImage

loadImageFromServerJar(string filename)

BBjImage

loadImageFromServerURL(string url)

BBjImage

loadImageFromURL(string url)

void

setCacheSize(int size)

void

setDefaultIcon(BBjImage image)

Remarks

None.

Example

REM Obtain an instance of the BBjImageManager object

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()

See Also

BBjAPI

BBjSysGui

BBj Object Variables

BBj Object Assignment

BBj Object Error Handling

BBj Object Operators

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



______________________________________________________________________________________

Copyright BASIS International Ltd. BBj®, Visual PRO/5®, PRO/5®, and BBx® are registered trademarks.