Qt implements the dynamic desktop background snowflake program, qt snowflake
I once received a gift, a snowflake program, and thought it was amazing. Through the previous articles, we have mastered some Paster skills, now you can implement it on your own (of course, you must first have the basic knowledge of qt signal
Php generates the program code for the snowflake background verification code. This article introduces the program code for generating the snowflake background verification code in php. if you need it, you can refer to it. The verification code is copied as follows? Phpsession_star This article introduces the program c
PHP generates a verification code with a snowflake background? Session_start ();? FORMMETHODPOSTACTIONinputtypetextnamenumbermaxlength4imgaltPHP generates the verification code srcwww. yeahtech. comStudyYanZhengMa. php? ActinitINPUTTYPEsubmitnamesubFORM? Verification code
PHP generates a verification code with a snowflake b
This article to introduce the PHP generated snowflake background Verification Code program codes, the need for friends to enter the reference.
Verification Code Generation Program
The code is as follows
Copy Code
Session_Start ();Session_register ("Login_check_number");Last night saw the Chianren on the Verification code effect, considered a bit, with the PHP GD library to
] = Strval (Mt_rand ("1111", "9999")); Generates a 4-bit random number and puts it in sessionWho can make the supplement, can generate letters and numbers at the same time?? ----finished by Sports98.
$aimg = imagecreate ($img _height, $img _width);//Generate picture Imagecolorallocate ($aimg, 255,255,255);//Picture background , Imagecolorallocate 1th time to define color PHP is considered to be the background
considered to be the background$black = Imagecolorallocate ($aimg, 0,0,0); Define the required BlackImagerectangle ($aimg, 0,0, $img _height-1, $img _width-1, $black);//A black rectangle to surround the picture //below this generates a snowflake background, which is actually generating some symbols on the picture for ($i =1; $i imagestring ($aimg, 1,mt_rand
PHP generates a verification code with a snowflake background. For more information about the effect, see [source code] mail. htjs. netyanzhengmatest. php? Session_start ();? FORMMETHODPOSTACTIONinputtypetextnamenumbermaxlength4imgsrcYanZhengMa. php? Acti effect reference (source code) http://mail.htjs.net/yanzhengma/test.php
// Check the verification codeIf (isset ($ HTTP_POST_VARS ["sub"]):If ($ HT
This article introduces the program code for generating the snowflake background verification code in php. If you need it, you can refer to it.
Verification Code Generation Program
The Code is as follows:
Copy code
Session_start ();Session_register ("login_check_number ");// I saw the verification code on chianren last night. I thought about it and used the PHP GD library to complete
Imagerectangle ($aimg, 0,0, $img _height-1, $img _width-1, $black);//First a black rectangle surrounds the picture
It's time to create a snowflake background, which is actually creating some symbols on the image.
for ($i =1; $i Imagestring ($aimg, 1,mt_rand (1, $img _height), Mt_rand (1, $img _width), "*", Imagecolorallocate ($aimg, Mt_rand (200,255) , Mt_rand (200,255), Mt_rand (200,255));
Ha, see, in fac
In this tutorial, I will share with my friends the method of creating a fantastic snowflake shadow background. the background produced by this tutorial is very beautiful and difficult. we recommend that you go to the footfall home, let's take a look at it. we will use Photoshop to introduce the method of the fantastic snowfla
required Black
Imagerectangle ($aimg, 0,0, $img _height-1, $img _width-1, $black);//A black rectangle to surround the picture
The following is the creation of a snowflake background, in fact, is to generate some symbols on the picture
For ($i =1 $i Imagestring ($aimg, 1,mt_rand (1, $img _height), Mt_rand (1, $img _width), "*", Imagecolorallocate ($aimg, Mt_rand (200,255) , Mt_rand (200,255), Mt_rand (200,2
($aimg, 255,255,255); Picture background, imagecolorallocate the 1th time to define color PHP is considered to be the background
$black = Imagecolorallocate ($aimg, 0,0,0); Define the required Black
Imagerectangle ($aimg, 0,0, $img _height-1, $img _width-1, $black);//A black rectangle to surround the picture
The following is the creation of a snowflake
Imagerectangle ($aimg, 0,0, $img _height-1, $img _width-1, $black);//First a black rectangle surrounds the picture
It's time to create a snowflake background, which is actually creating some symbols on the image.
for ($i =1; $i Imagestring ($aimg, 1,mt_rand (1, $img _height), Mt_rand (1, $img _width), "*", Imagecolorallocate ($aimg, Mt_rand (200,255) , Mt_rand (200,255), Mt_rand (200,255));
Ha, see, in fac
); // srand is not required after PHP420For ($ Tmpa = 0; $ Tmpa $ Nmsg. = dechex (rand (0, 15 ));} // By sports98$ HTTP_SESSION_VARS [login_check_number] = $ nmsg;
// $ HTTP_SESSION_VARS [login_check_number] = strval (mt_rand ("1111", "9999"); // generates a four-digit random number and puts it into the session// Who can make the supplement and generate letters and numbers at the same time ?? ---- Completed by sports98
$ Aimg = imageCreate ($ img_height, $ img_width); // generate an imageImageCo
, $ black); // enclose an image in a black rectangle first// The following generates a snowflake background. In fact, some symbols are generated on the image.For ($ I = 1; $ I ImageString ($ aimg, 1, mt_rand (1, $ img_height), mt_rand (1, $ img_width), "*", imageColorAllocate ($ aimg, mt_rand (200,255 ), mt_rand (200,255), mt_rand (200,255 )));// Ha, you can see it. it's not actually a
] = $ nmsg;// $ HTTP_SESSION_VARS [login_check_number] = strval (mt_rand ("1111", "9999"); // generates a four-digit random number and puts it into the session// Who can make the supplement and generate letters and numbers at the same time ?? ---- Completed by sports98$ Aimg = imageCreate ($ img_height, $ img_width); // generate an imageImageColorAllocate ($ aimg, 255,255,255); // image background color, ImageColorAllocate 1st definition color PHP con
random number and puts it in sessionWho can make the supplement, can generate letters and numbers at the same time?? ----finished by Sports98.
$aimg = imagecreate ($img _height, $img _width);//Generate picture Imagecolorallocate ($aimg, 255,255,255);//Picture background , Imagecolorallocate 1th time to define color PHP is considered to be the background of the $black = imagecolorallocate ($aimg, 0,0,
image in a black rectangle first
// The following generates a snowflake background. In fact, some symbols are generated on the image.For ($ I = 1; $ I Imagestring ($ aimg, 1, mt_rand (1, $ img_width), mt_rand (1, $ img_height), "*", imageColorAllocate ($ aimg, mt_rand (200,255 ), mt_rand (200,255), mt_rand (200,255 )));// Actually, it is not a snowflake, that is
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.