\BaconQrCode\Renderer\ColorAlpha

Summary

Methods
Properties
Constants
__construct()
getAlpha()
getBaseColor()
toRgb()
toCmyk()
toGray()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$alpha
$baseColor
N/A

Properties

$alpha

$alpha : int

Type

int

$baseColor

$baseColor : \BaconQrCode\Renderer\Color\ColorInterface

Type

ColorInterface

Methods

__construct()

__construct(int  $alpha, \BaconQrCode\Renderer\Color\ColorInterface  $baseColor) : mixed

Parameters

int $alpha

the alpha value, 0 to 100

\BaconQrCode\Renderer\Color\ColorInterface $baseColor

Returns

mixed —

getAlpha()

getAlpha() : int

Returns

int —

getBaseColor()

getBaseColor() : \BaconQrCode\Renderer\Color\ColorInterface

Returns

\BaconQrCode\Renderer\Color\ColorInterface —

toRgb()

toRgb() : \BaconQrCode\Renderer\Color\Rgb

Converts the color to RGB.

Returns

\BaconQrCode\Renderer\Color\Rgb —

toCmyk()

toCmyk() : \BaconQrCode\Renderer\Color\Cmyk

Converts the color to CMYK.

Returns

\BaconQrCode\Renderer\Color\Cmyk —

toGray()

toGray() : \BaconQrCode\Renderer\Color\Gray

Converts the color to gray.

Returns

\BaconQrCode\Renderer\Color\Gray —