asp.net generate graphics Validation code program

Source: Internet
Author: User

ASP tutorial. NET Generate graphics validation code program

void Palm::d isplay ()
{
Glloadidentity (); Resetting the current model observation matrix
glcolor3f (. 0f,1.0f,1.0f);
Draw the Palms around
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 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::d isplay ()
{   
    finger * pfinger[5]={&m_thumb,&m_ index,&m_medius,&m_ring,&m_little};
    m_palm.display ();                                 //Show Palm
    for (int i=0;i<5;i++)    pfinger[i]->display ();    //Show 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.