BBjImage
Description
In BBj 5.0 and higher, use the BBjImage object to manipulate images on BBjButton, BBjToolButton, BBjTabCtrl, and BBjTopLevelWindow objects. Do not confuse the BBjImage object with the BBjImageCtrl control, which places an image on a window (BBjImageCtrl is now the object known prior to BBj 5.0 as BBjImage).
Creation
BBjAPI > BBjSysGui > BBjImageManager > BBjImage
Create a BBjImage object using one of the following BBjImageManager
methods:
Return Value |
Method |
---|---|
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) |
Methods of BBjImage
Return Value |
Method |
---|---|
string |
getBytes(string format) |
int |
|
int |
getWidth() |
BBjImage |
getImageSlice(int index, int width) |
boolean |
isValid() |
Remarks
None.
Constants
None.
Example
|
See Also
BBj Object Creation and Assignment
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.