ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
securimage_show_example2.php
Go to the documentation of this file.
1 <?php
2 
47 require_once dirname(__FILE__) . '/securimage.php';
48 
49 $img = new Securimage();
50 
51 //Change some settings
52 $img->image_width = 280;
53 $img->image_height = 100;
54 $img->perturbation = 0.9; // high level of distortion
55 $img->code_length = rand(5,6); // random code length
56 $img->image_bg_color = new Securimage_Color("#ffffff");
57 $img->num_lines = 12;
58 $img->noise_level = 5;
59 $img->text_color = new Securimage_Color("#000000");
60 $img->noise_color = $img->text_color;
61 $img->line_color = new Securimage_Color("#cccccc");
62 
63 $img->show();