Asp.net generates a graphical verification code program

Source: Internet
Author: User

Asp tutorial. net generate a graphical verification code program

Void palm: display ()
{
Glloadidentity (); // reset the current model observation matrix
Glcolor3f (. 0f, 1.0f, 1.0f );
// Draw around the palm
Glbegin (gl_quad_strip );
Glvertex3f (-39.5000, 37.7987, 10.0000 );
Glvertex3f (-39.5000, 37.7987, 10.0000 );
Glvertex3f (-47.1311, 16.1908, 10.0000 );
Glvertex3f (-47.1311, 16.1908, 10.0000 );
Glvertex3f (-48.8821,-21.7083, 10.0000 );
Glvertex3f (-48.8821,-21.7083, 10.0000 );
Glvertex3f (-34.5000,-42.2013, 10.0000 );
Glvertex3f (-34.5000,-42.2013, 10.0000 );
Glvertex3f (-34.5000,-62.2013, 10.0000 );
Glvertex3f (-34.5000,-62.2013, 10.0000 );
Glvertex3f (34.5000,-62.2013, 10.0000 );
Glvertex3f (34.5000,-62.2013, 10.0000 );
Glvertex3f (34.5000,-42.2013, 10.0000 );
Glvertex3f (34.5000,-42.2013, 10.0000 );
Glvertex3f (51.5617,-32.7875, 10.0000 );
Glvertex3f (51.5617,-32.7875, 10.0000 );
Glvertex3f (71.9188,-7.6604, 10.0000 );
Glvertex3f (71.9188,-7.6604, 10.0000 );
Glvertex3f (59.0631, 7.6604, 10.0000 );
Glvertex3f (59.0631, 7.6604, 10.0000 );
Glvertex3f (48.9573, 18.3372, 10.0000 );
Glvertex3f (48.9573, 18.3372, 10.0000 );
Glvertex3f (39.5000, 37.7987, 10.0000 );
Glvertex3f (39.5000, 37.7987, 10.0000 );
Glvertex3f (-39.5000, 37.7987, 10.0000 );
Glvertex3f (-39.5000, 37.7987, 10.0000 );
Glend ();

// Draw the upper surface
Glbegin (gl_polygon );
Glvertex3f (-39.5000, 37.7987, 10.0000 );
Glvertex3f (-47.1311, 16.1908, 10.0000 );
Glvertex3f (-48.8821,-21.7083, 10.0000 );
Glvertex3f (-34.5000,-42.2013, 10.0000 );
Glvertex3f (-34.5000,-62.2013, 10.0000 );
Glvertex3f (34.5000,-62.2013, 10.0000 );
Glvertex3f (34.5000,-42.2013, 10.0000 );
Glvertex3f (51.5617,-32.7875, 10.0000 );
Glvertex3f (71.9188,-7.6604, 10.0000 );
Glvertex3f (59.0631, 7.6604, 10.0000 );
Glvertex3f (48.9573, 18.3372, 10.0000 );
Glvertex3f (39.5000, 37.7987, 10.0000 );
Glvertex3f (-39.5000, 37.7987, 10.0000 );
Glend ();

// Draw the lower surface
Glbegin (gl_polygon );
Glvertex3f (-39.5000, 37.7987,-10.0000 );
Glvertex3f (-47.1311, 16.1908,-10.0000 );
Glvertex3f (-48.8821,-21.7083,-10.0000 );
Glvertex3f (-34.5000,-42.2013,-10.0000 );
Glvertex3f (-34.5000,-62.2013,-10.0000 );
Glvertex3f (34.5000,-62.2013,-10.0000 );
Glvertex3f (34.5000,-42.2013,-10.0000 );
Glvertex3f (51.5617,-32.7875,-10.0000 );
Glvertex3f (71.9188,-7.6604,-10.0000 );
Glvertex3f (59.0631, 7.6604,-10.0000 );
Glvertex3f (48.9573, 18.3372,-10.0000 );
Glvertex3f (39.5000, 37.7987,-10.0000 );
Glvertex3f (-39.5000, 37.7987,-10.0000 );
Glend ();
}

Void hand: display ()
{
Finger * pfinger [5] = {& m_thumb, & m_index, & m_medius, & m_ring, & m_little };
M_palm.display (); // palm display
For (int I = 0; I <5; I ++) pfinger [I]-> display (); // display 5 fingers

}

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.