Funkce Blue

Returns the blue component of the specified composite color code.

Syntaxe:


Blue (Barva As Long)

Návratová hodnota:

Celé číslo

Parametr:

Color value: Long integer expression that specifies any composite color code for which to return the blue component.

Chybové kódy:

5 Neplatné volání procedury

tip

The color picker dialog details the red, green and blue components of a composite color code, as well as its hexadecimal expression. Changing the color of text and selecting Custom color displays the color picker dialog.


Příklad:


Sub ExampleColor
Dim lVar As Long
    lVar = rgb(128,0,200)
    MsgBox "Barva " & lVar & " se skládá z:" & Chr(13) &_
        "červená= " & Red(lVar) & Chr(13)&_
        "zelená= " & Green(lVar) & Chr(13)&_
        "modrá= " & Blue(lVar) & Chr(13) , 64,"barvy"
End Sub