BBjColor::getAlpha

Description

In BBj 17 and higher, this method returns the alpha value of a BBjColor object.

Syntax

Return Value

Method

int

getAlpha()

Parameters

None.

Return Value

Returns the alpha value of a BBjColor object.

Remarks

The value can be in the range 0-255. The default value is 255 (opaque).

Example

rem 'Get the alpha value from an instance of a BBjColor object

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

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

rem 'Create the BBjColor Object using RGB values
myColorRGB! = mySysGui!.makeColor(215,255,100,64)

rem 'Get the red value from the BBjColor object, this will return 64
ALPHA_VALUE = myColorRGB!.getAlpha()

See Also

BBjAPI

BBjSysGui

Object Variables

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