asp.net生成图形验证代码程序
时间:2010-09-01 来源:蔚蓝的大海
asp教程.net生成图形验证代码程序
void palm::display()
{
glloadidentity(); // 重置当前的模型观察矩阵
glcolor3f(.0f,1.0f,1.0f);
//绘制手掌四周
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();
//绘制上表面
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();
//绘制下表面
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(); //显示手掌
for(int i=0;i<5;i++) pfinger[i]->display(); //显示5个手指
}
IDE to USB adapter card high-speed plug and play LED indication light fashion transmission cardPCI four ports array card with 4 internal SATA interface up to 1.5Gbps data transfer rate PCI card3.5 DC to AU cellphone charging adapter connector stable performanceUSB B/F short body DIP 90°(bending L=16.3mm)connector usb port connector adapterUSB A Male to A Male Cable Clear BlueWooden 512Mb 2Gb USB 2.0 Flash Memory DriveLens Shaped 4 Ports USB Hub18*BNC F to 25 pin Male HD VGA Video Audio Monitor CableFLP Mini 10P Male USB connector cellphone connector mobile connector32Mb USB 2.0 Flash DriveCamera USB flash driveUnique Tissort Shaped 4 Port USB Hub25 Pin DB25 Male to Female Extension Cable for Printer WhiteMini 5P Female 90° two feet for DIP USB connector cellphone connector mini usb adapterCute Smile Face Like 4 Ports USB Hub for PC NotebookSATA HDD To Male2.5'' IDE adapter card high-speed fashion design transmission cardUSB A Male to 2 USB A Male Adapter CableDC charging head adapter connector with long life time OEM6*RCA F and 4 pin MD F to 15 pin Male HD VGA Video Audio Monitor CableCool Sawdust 2Gb USB 2.0 Flash Memory Drive6-in-1 Portable Computer USB Kit Bag with USB Hub, Mini Mouse, EarphoneHDMI HDMI-01C(with ear) HDMI 19P/F four feet HDMI high definition data plug HDMI connector16Mb USB 2.0 Flash DriveSerial ATA SATA 7 Pin Female to Female Cable (Lots 20)USB cable& wall&car charger for apple iPod iPhone 3G GPS iPod chargerBeautiful Color Fish Like 7 Ports USB 2.0 Hub for PC LaptopWonderful Green Tank Like 4 Ports USB Hub for PC LaptopHDMI to 2*DVI adapter connector with long life time OEMRed 1Gb USB 2.0 Flash MemoryUSB B/M long body wire solder three-piece connector plug OEM adapter connectorTraffic Light Shaped 4 Ports USB HubLipstick USB Flash DriveFLP Mini 10P Female sinking USB connector cellphone connector mobile connectorUSB A/F 90° DIP buckle outside connector RoHS compliant OEM adapter connectorBlock Wooden 512Mb USB 2.0 Flash Memory DriveSmart cable,4-in-1 with USB transmission,card reader,USB charging,novelty hangs with LED instructionUSB 54M with antenna wireless lan card packet filtering wireless roaming DSSSDVI 24+1 M to VGA 15P F adapter with long life time connector OEMMini 14P Male wire solder USB connector cellphone connector mini usb port type usb cable connectorHDMI 19P/F straddle HDMI high definition data plug HDMI connectorIPod home power supply 180°swiveling AC plug design USB port3.5 IDE to 2.5 IDE adapter fashion design suitable for laptop transmission cardLight Bulb USB Flash DriveHDMI-08E.HDMI 19P/M wire solder HDMI connector HDMI high definition data plugUltra Mini white USB AC power adapter for ipod iPhone 2G 3G chargerUSB 2.0 Data Charger Adapter Retractable Cable for Samsung PhoneCool Cylindrical Wooden 1Gb USB 2.0 Flash Memory Drive12-in-1 Portable Computer USB Kit Bag with Earohone& Microphone, Multi Adapter, Rj45 and RJ11 ConnecSilver Foldable 4 Ports USB 2.0 Hub for PC LaptopRotatable 7 Shaped 4 Ports USB Hub