Click here to Skip to main content
15,880,608 members
Articles / Multimedia / GDI+

C# Application to Create and Recognize Mouse Gestures (.NET)

Rate me:
Please Sign up or sign in to vote.
4.82/5 (39 votes)
17 Mar 2008CPOL5 min read 221.2K   8.1K   144  
This program can create and recognize mouse gestures.
<?xml version="1.0" encoding="utf-8"?>
<gesture name="CCCircle" threshold="1" points="88">
  <point x="40,41095" y="7,260281" />
  <point x="39,65753" y="8,013705" />
  <point x="36,64383" y="9,520554" />
  <point x="32,87671" y="13,28768" />
  <point x="29,10959" y="15,54795" />
  <point x="25,34246" y="18,56165" />
  <point x="21,57534" y="22,32877" />
  <point x="18,56164" y="23,83562" />
  <point x="16,30137" y="28,35617" />
  <point x="14,04109" y="30,61644" />
  <point x="11,0274" y="35,13699" />
  <point x="9,520547" y="38,90411" />
  <point x="7,260273" y="43,42466" />
  <point x="5,753425" y="47,19178" />
  <point x="5" y="50,20549" />
  <point x="5" y="54,72603" />
  <point x="5" y="56,23288" />
  <point x="5" y="59,24658" />
  <point x="5" y="62,26028" />
  <point x="5,753425" y="65,27397" />
  <point x="6,506849" y="68,28767" />
  <point x="8,013699" y="72,05479" />
  <point x="8,767122" y="74,31506" />
  <point x="11,0274" y="78,83562" />
  <point x="12,53425" y="81,84932" />
  <point x="16,30137" y="86,36986" />
  <point x="20,06849" y="91,64383" />
  <point x="23,08219" y="95,41095" />
  <point x="28,35616" y="99,9315" />
  <point x="31,36986" y="102,9452" />
  <point x="34,38356" y="105,2055" />
  <point x="38,15068" y="108,2192" />
  <point x="41,16438" y="109,726" />
  <point x="45,68493" y="111,2329" />
  <point x="50,9589" y="111,9863" />
  <point x="60,75342" y="112,7397" />
  <point x="69,04109" y="112,7397" />
  <point x="74,31506" y="112,7397" />
  <point x="80,34246" y="111,2329" />
  <point x="85,61644" y="108,9726" />
  <point x="87,87672" y="107,4658" />
  <point x="92,39726" y="103,6986" />
  <point x="96,9178" y="100,6849" />
  <point x="99,93151" y="96,16438" />
  <point x="105,2055" y="89,38356" />
  <point x="108,2192" y="84,86302" />
  <point x="111,2329" y="80,34247" />
  <point x="113,4931" y="75,82191" />
  <point x="115" y="71,30138" />
  <point x="115" y="66,78082" />
  <point x="115" y="64,52055" />
  <point x="115" y="61,50686" />
  <point x="112,7397" y="57,73973" />
  <point x="111,9863" y="55,47946" />
  <point x="109,726" y="51,71233" />
  <point x="106,7123" y="48,69864" />
  <point x="104,452" y="44,93151" />
  <point x="102,1918" y="42,67123" />
  <point x="99,17808" y="38,15069" />
  <point x="96,16438" y="35,89042" />
  <point x="92,39726" y="33,63014" />
  <point x="89,38355" y="31,36987" />
  <point x="86,36987" y="29,86302" />
  <point x="81,09589" y="27,60275" />
  <point x="76,57534" y="26,0959" />
  <point x="72,80822" y="23,83562" />
  <point x="66,78082" y="22,32877" />
  <point x="63,01369" y="20,0685" />
  <point x="58,49314" y="19,31507" />
  <point x="54,72602" y="17,80822" />
  <point x="52,46575" y="17,80822" />
  <point x="50,20548" y="17,0548" />
  <point x="49,45205" y="17,0548" />
  <point x="48,69863" y="17,0548" />
  <point x="46,43835" y="17,0548" />
  <point x="44,17808" y="17,0548" />
  <point x="42,67123" y="17,0548" />
  <point x="41,16438" y="17,0548" />
  <point x="39,65753" y="17,0548" />
  <point x="38,15068" y="17,0548" />
  <point x="37,39726" y="17,0548" />
  <point x="36,64383" y="17,0548" />
  <point x="35,89041" y="17,0548" />
  <point x="35,13699" y="17,0548" />
  <point x="32,87671" y="17,0548" />
  <point x="31,36986" y="17,0548" />
  <point x="29,86301" y="17,0548" />
  <point x="29,10959" y="17,0548" />
</gesture>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Apex s.r.l.
Italy Italy
I got my Computer Science (Engineering) Master's Degree at the Siena University (Italy), but I'm from Rieti (a small town next to Rome).
My hobbies are RPG, MMORGP, programming and 3D graphics.
At the moment I'm employed at Apex s.r.l. (Modena, Italy) as a senior software developer, working for a WPF/WCF project in Rome.

Comments and Discussions