File: StartFastDrawing.html

package info (click to toggle)
openlayer 2.1-2.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 3,392 kB
  • ctags: 2,317
  • sloc: ansic: 10,433; cpp: 9,890; xml: 109; makefile: 90; sh: 36
file content (14 lines) | stat: -rw-r--r-- 3,591 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transistional//EN"><html><head><title>OpenLayer Offline Manual</title><style type="text/css" media="all">@import "../CrystalStyle.css";</style><body bgcolor="FFFFFF" ><div align="center" style="pagestyle"><table width="60%"><tr><td><div class="parentLinks"><a href="../index.html">OpenLayer</a> | <a href="../Shape.html">Shape</a> | <a href="../Shape/Point.html">Point</a> | <a href="../Point/StartFastDrawing.html">StartFastDrawing</a></div><br><div class="BigHeader">StartFastDrawing</div><br><div class=""><div class="Surrounded"><table><tr valign="top"><td align="right"><div class="FuncDef"><strong><font color="#777733">static</font> <font color="#777733">void</font> <a href="../Point/StartFastDrawing.html"><font color="#0000CC">StartFastDrawing</font></a>()
<br></strong></div></td></tr></table>
<br>You should call this function before using <a href="../Point/DrawFast.html"><font color="#0000CC">DrawFast</font></a>.
<br></div>
<br>Remember that even though using DrawFast is faster than using Draw, it's still not suitable for pixelwise image manipulation, for example.</div><br><div class="MediumHeader">Examples</div><br><div class="Code"><font color="#999922">//&nbsp;First&nbsp;start&nbsp;fast&nbsp;drawing&nbsp;//</font>
<br><a href="../Shape/Point.html"><font color="#0000CC">Point</font></a>::<a href="../Point/StartFastDrawing.html"><font color="#0000CC">StartFastDrawing</font></a>();
<br>
<br><font color="#999922">//&nbsp;Draw&nbsp;a&nbsp;series&nbsp;of&nbsp;points&nbsp;//</font>
<br>for(&nbsp;<font color="#777733">int</font>&nbsp;i&nbsp;=&nbsp;<font color="#994400">0</font>;&nbsp;i&nbsp;=&nbsp;<font color="#994400">1000</font>;&nbsp;i++&nbsp;)&nbsp;{
<br>&nbsp;&nbsp;&nbsp;<a href="../Shape/Point.html"><font color="#0000CC">Point</font></a>(&nbsp;i,&nbsp;i&nbsp;).<a href="../Point/DrawFast.html"><font color="#0000CC">DrawFast</font></a>(&nbsp;<a href="../Rgba.html"><font color="#0000CC">Rgba</font></a>::RED&nbsp;);
<br>}
<br>
<br><font color="#999922">//&nbsp;Finish&nbsp;fast&nbsp;drawing&nbsp;//</font>
<br><a href="../Shape/Point.html"><font color="#0000CC">Point</font></a>::<a href="../Point/FinishFastDrawing.html"><font color="#0000CC">FinishFastDrawing</font></a>();</div><div class=""><br><br><div class="MediumHeader">Other functions of the class <a href="../Shape/Point.html"><font color="#0000CC">Point</font></a></div><div class="Surrounded"><table size="100%" cellpadding="0" cellspacing="0"><tr><td halign="center" class="funclist"><a href="../Point/Draw.html">Draw</a></td><td width="65%" halign="center"><div class="smalltext">Draws the point with the specified color</div></td></tr><tr><td halign="center" class="funclist"><a href="../Point/StartFastDrawing.html">StartFastDrawing</a></td><td width="65%" halign="center"><div class="smalltext">Call this function before using FastPoint</div></td></tr><tr><td halign="center" class="funclist"><a href="../Point/DrawFast.html">DrawFast</a></td><td width="65%" halign="center"><div class="smalltext">A faster version of Draw</div></td></tr><tr><td halign="center" class="funclist"><a href="../Point/FinishFastDrawing.html">FinishFastDrawing</a></td><td width="65%" halign="center"><div class="smalltext">Should be called after using DrawFast</div></td></tr></table></div><br><div class=""><a href="../index.html">Back to the main page of the manual</a></div><br>Questions about StartFastDrawing? Click <a href="http://crystalstorm.ath.cx/index.php?lan=en&page=CreateFeedback&subject=StartFastDrawing">here.</a></div></td></tr></table></body></html>