Class DigitalLED74
(Defined in: jpgraph_led.php : 37)

DigitalLED74
SetSupersampling() Stroke() StrokeNumber() __construct()

Class usage and Overview

Class Methods

DigitalLED74 ::
SetSupersampling($aSuperSampling)
Set level of supersampling used in the creation led digits

Argument | Default | Description
--- | --- | ---
$aSuperSampling | 2 | Level of supersampling

Description:
Specifies the amount of oversampling that sould be used to create a smoother looking image. A higher value will generate a smoother image. The value used for supersampling should be an integer in the range 2-4. A higher value could be used but the increase in CPU time will not generate any perceivable improvements in image quality. For each integer step increased supersampling the processor time needed is multipled by 2

Example:

$led = new DigitalLED74(5);
$led->SetSupersampling(4);
$led->StrokeNumber('ABC123.',LEDC_RED);

DigitalLED74 ::
Stroke($aValStr, $aColor, $aFileName)
// Margin in between "Led" dots

Argument | Default | Description
--- | --- | ---
$aValStr |  | No description available
$aColor | 0 | No description available
$aFileName | '' | No description available

Description:
No description available.

DigitalLED74 ::
StrokeNumber($aValStr, $aColor, $aFileName)
// Margin in between "Led" dots

Argument | Default | Description
--- | --- | ---
$aValStr |  | No description available
$aColor | 0 | No description available
$aFileName | '' | No description available

Description:
No description available.

DigitalLED74 ::
__construct($aRadius, $aMargin)
Constructor for 4x7 module LED digits

Argument | Default | Description
--- | --- | ---
$aRadius | 2 | Radius in pixel for each "led"
$aMargin | 0.6 | Margin around the "led"

Description:
Instantiate a LED digit class that is used to genereta text which looks like LED digits
See also:

- DigitalLED74::SetSupersampling()
- DigitalLED74::StrokeNumber()

Example:

$led = new DigitalLED74();
$led->StrokeNumber('0123456789. ABCDEFGHIJKL',LEDC_GREEN);