BBjImage::isValid

Description

This method returns a boolean indicating whether the BBjImage was successfully loaded.

Syntax

Return Value

Method

boolean

isValid()

Parameters

None.

Return Value

Returns a boolean indicating whether the BBjImage was successfully loaded.

Remarks

None.

Example

rem ' BBjImage::isValid

image$ = "https://www.basis.cloud/images/basislogo.jpg"
print "Image: ",image$
sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
imagemanager! = sysgui!.getImageManager()
image! = javax.imageio.ImageIO.read(new java.net.URL(image$))
os! = new java.io.ByteArrayOutputStream()
javax.imageio.ImageIO.write(image!,"jpg",os!)
bytes! = os!.toByteArray()
image! = imagemanager!.loadImageFromBytes(bytes!)
print "Image width:",image!.getWidth()
print "Image height:",image!.getHeight()
print "Image isValid: ",image!.isValid()

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

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