PageRenderTime 42ms CodeModel.GetById 12ms app.highlight 22ms RepoModel.GetById 2ms app.codeStats 0ms

/jpgraph/docs/classref/DigitalLED74.html

https://gitlab.com/track-iot/ui
HTML | 142 lines | 102 code | 29 blank | 11 comment | 0 complexity | 25c1923d2401516d876f71a6dbda0a2e MD5 | raw file
  1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><style type="text/css">
  2		<!--
  3		A:link        {font-family: helvetica, arial, geneva, sans-serif; font-size: small; text-decoration: none; color: #000000}
  4		A:visited     {font-family: helvetica, arial, geneva, sans-serif; font-size: small; text-decoration: none; color: #000000}
  5		A:hover       {font-family: helvetica, arial, geneva, sans-serif; font-size: small; text-decoration: underline; color: #FF0000}
  6        A.no:link        {font-family:inherit; font-size: inhreit;text-decoration: none; color: #000000}
  7        A.no:visited     {font-family:inherit; font-size: inherit;text-decoration: none; color: #000000}
  8        A.no:hover       {font-family:inherit; font-size: inherit;text-decoration: none; color: #000000}
  9		th            {font-family: helvetica, arial; color : black; font-size:90%; background : #b7c8b7; border-right:black solid 1pt; border-bottom:black solid 1pt;}
 10        td            {font-family: helvetica, arial; color : black; font-size:90%; background : white; border-right:black solid 1pt; border-bottom:black solid 1pt;}
 11
 12		//-->
 13		</style></HEAD><hr><div style="padding-left:4px;border-left:solid black 1px;border-top:solid black 1px;border-bottom:solid black 2px;border-right:solid black 2px;background-color:#deaa87;font-family:courier new;font-size:16pt;">Class <a class="no" name="_C_DIGITALLED74"><b>DigitalLED74</b></a></div>
 14<i>(Defined in: jpgraph_led.php : 37)</i><br>&nbsp;<br><table cellspaceing=0 cellpadding=4 style="border:solid #303030 1px;"><tr><td align="center" style="background:lightgray;" >&nbsp;<a href="DigitalLED74.html" style="font-family:arial;font-weight:bold;color:darkblue;">DigitalLED74</a>&nbsp;</td></tr><tr><td valign=top>&nbsp;<a href="DigitalLED74.html#_DIGITALLED74_SETSUPERSAMPLING">SetSupersampling()</a>&nbsp;<br>
 15&nbsp;<a href="DigitalLED74.html#_DIGITALLED74_STROKE">Stroke()</a>&nbsp;<br>
 16&nbsp;<a href="DigitalLED74.html#_DIGITALLED74_STROKENUMBER">StrokeNumber()</a>&nbsp;<br>
 17&nbsp;<a href="DigitalLED74.html#_DIGITALLED74___CONSTRUCT">__construct()</a>&nbsp;<br>
 18</td></tr></table>&nbsp;<p><div style="font-weight:bold;font-family:arial;font-size:100%;">Class usage and Overview</div> <p> &nbsp;
 19<hr><span style="font-family:arial;font-size:120%;font-weight:bold;">Class Methods</span><hr><p>
 20<p> &nbsp; <div style='font-family: helvetica, arial, geneva, sans-serif;margin-bottom:4px;border-left:solid black 1px;border-top:solid black 1px;border-bottom:solid black 2px;border-right:solid black 2px;font-size:120%;background:#dde9af;padding:4px;'><a class="no" name="_DIGITALLED74_SETSUPERSAMPLING"><span style="color:#555555;">DigitalLED74 ::</span><br><b>SetSupersampling</b>($aSuperSampling)</a></div>
 21
 22<span style='font-family:arial;font-size:95%;'><i>Set level of supersampling used in the creation led digits</i></span><p>
 23
 24<table cellspacing=0 style='border:black solid 1pt;' width=100%>
 25<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
 26<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
 27<span style="color: #0000BB">$aSuperSampling</span>
 28</span>
 29
 30</td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
 31<span style="color: #0000BB">2</span>
 32</span>
 33</td><td>Level of supersampling</td></tr>
 34</table>
 35
 36<div style="font-weight:bold;font-family:arial;font-size:90%;">Description:</div>Specifies the amount of oversampling that sould be used to create a smoother looking image. A higher value will generate a smoother image. 
 37
 38The 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.
 39
 40For each integer step increased supersampling the processor time needed is multipled by 2&nbsp;<br>
 41
 42<div style="font-weight:bold;font-family:arial;font-size:90%;"><p>Example:</div><div style="padding:5px;border:dashed gray 1px;background-color:#f3f3f3;font-family:courier new;font-size:90%;font-weight:bold;"><b><span style="color: #000000">
 43<span style="color: #0000BB">$led&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">DigitalLED74</span><span style="color: #007700">(</span><span style="color: #0000BB">5</span><span style="color: #007700">);
 44<br /></span><span style="color: #0000BB">$led</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">SetSupersampling</span><span style="color: #007700">(</span><span style="color: #0000BB">4</span><span style="color: #007700">);
 45<br /></span><span style="color: #0000BB">$led</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">StrokeNumber</span><span style="color: #007700">(</span><span style="color: #DD0000">'ABC123.'</span><span style="color: #007700">,</span><span style="color: #0000BB">LEDC_RED</span><span style="color: #007700">);&nbsp;</span><span style="color: #0000BB"></span>
 46</span>
 47</b></div><br>
 48<p>
 49<p> &nbsp; <div style='font-family: helvetica, arial, geneva, sans-serif;margin-bottom:4px;border-left:solid black 1px;border-top:solid black 1px;border-bottom:solid black 2px;border-right:solid black 2px;font-size:120%;background:#dde9af;padding:4px;'><a class="no" name="_DIGITALLED74_STROKE"><span style="color:#555555;">DigitalLED74 ::</span><br><b>Stroke</b>($aValStr, $aColor, $aFileName)</a></div>
 50
 51<span style='font-family:arial;font-size:95%;'><i>// Margin in between "Led" dots</i></span><p>
 52
 53<table cellspacing=0 style='border:black solid 1pt;' width=100%>
 54<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
 55<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
 56<span style="color: #0000BB">$aValStr</span>
 57</span>
 58
 59</td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'>&nbsp;</td><td>No description available</td></tr>
 60
 61<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
 62<span style="color: #0000BB">$aColor</span>
 63</span>
 64
 65</td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
 66<span style="color: #0000BB">0</span>
 67</span>
 68</td><td>No description available</td></tr>
 69
 70<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
 71<span style="color: #0000BB">$aFileName</span>
 72</span>
 73
 74</td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
 75<span style="color: #0000BB"></span><span style="color: #DD0000">''</span><span style="color: #0000BB"></span>
 76</span>
 77</td><td>No description available</td></tr>
 78</table>
 79
 80<div style="font-weight:bold;font-family:arial;font-size:90%;">Description:</div>No description available.<p>
 81<p> &nbsp; <div style='font-family: helvetica, arial, geneva, sans-serif;margin-bottom:4px;border-left:solid black 1px;border-top:solid black 1px;border-bottom:solid black 2px;border-right:solid black 2px;font-size:120%;background:#dde9af;padding:4px;'><a class="no" name="_DIGITALLED74_STROKENUMBER"><span style="color:#555555;">DigitalLED74 ::</span><br><b>StrokeNumber</b>($aValStr, $aColor, $aFileName)</a></div>
 82
 83<span style='font-family:arial;font-size:95%;'><i>// Margin in between "Led" dots</i></span><p>
 84
 85<table cellspacing=0 style='border:black solid 1pt;' width=100%>
 86<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
 87<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
 88<span style="color: #0000BB">$aValStr</span>
 89</span>
 90
 91</td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'>&nbsp;</td><td>No description available</td></tr>
 92
 93<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
 94<span style="color: #0000BB">$aColor</span>
 95</span>
 96
 97</td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
 98<span style="color: #0000BB">0</span>
 99</span>
100</td><td>No description available</td></tr>
101
102<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
103<span style="color: #0000BB">$aFileName</span>
104</span>
105
106</td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
107<span style="color: #0000BB"></span><span style="color: #DD0000">''</span><span style="color: #0000BB"></span>
108</span>
109</td><td>No description available</td></tr>
110</table>
111
112<div style="font-weight:bold;font-family:arial;font-size:90%;">Description:</div>No description available.<p>
113<p> &nbsp; <div style='font-family: helvetica, arial, geneva, sans-serif;margin-bottom:4px;border-left:solid black 1px;border-top:solid black 1px;border-bottom:solid black 2px;border-right:solid black 2px;font-size:120%;background:#dde9af;padding:4px;'><a class="no" name="_DIGITALLED74___CONSTRUCT"><span style="color:#555555;">DigitalLED74 ::</span><br><b>__construct</b>($aRadius, $aMargin)</a></div>
114
115<span style='font-family:arial;font-size:95%;'><i>Constructor for 4x7 module LED digits</i></span><p>
116
117<table cellspacing=0 style='border:black solid 1pt;' width=100%>
118<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
119<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
120<span style="color: #0000BB">$aRadius</span>
121</span>
122
123</td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
124<span style="color: #0000BB">2</span>
125</span>
126</td><td>Radius in pixel for each "led"</td></tr>
127
128<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
129<span style="color: #0000BB">$aMargin</span>
130</span>
131
132</td><td style='border-right:black solid 1pt;font-family:courier;font-size:100%;font-weight:bold;'><span style="color: #000000">
133<span style="color: #0000BB">0.6</span>
134</span>
135</td><td>Margin around the "led"</td></tr>
136</table>
137
138<div style="font-weight:bold;font-family:arial;font-size:90%;">Description:</div>Instantiate a LED digit class that is used to genereta text which looks like LED digits&nbsp;<br>
139 &nbsp; <div style="font-weight:bold;font-family:arial;font-size:90%;">See also:</div><ul><li><a href="DigitalLED74.html#_DIGITALLED74_SETSUPERSAMPLING">DigitalLED74::SetSupersampling()</a><li><a href="DigitalLED74.html#_DIGITALLED74_STROKENUMBER">DigitalLED74::StrokeNumber()</a></ul>
140<div style="font-weight:bold;font-family:arial;font-size:90%;"><p>Example:</div><div style="padding:5px;border:dashed gray 1px;background-color:#f3f3f3;font-family:courier new;font-size:90%;font-weight:bold;"><b><span style="color: #000000">
141<span style="color: #0000BB">$led&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">DigitalLED74</span><span style="color: #007700">();
142<br /></span><span style="color: #0000BB">$led</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">StrokeNumber</span><span style="color: #007700">(</span><span style="color: #DD0000">'0123456789.&nbsp;ABCDEFGHIJKL'</span><span style="color: #007700">,</span><span style="color: #0000BB">LEDC_GREEN</span><span style="color: #007700">);</span><span style="color: #0000BB"></span>
143</span>
144</b></div><br>
145<p> <hr> <p></html>