[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/includes/captcha/ -> captcha_gd.php (summary)

(no description)

Copyright: (c) 2006 phpBB Group
License: http://opensource.org/licenses/gpl-license.php GNU Public License
Version: $Id$
File Size: 2640 lines (72 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 classes

captcha:: (5 methods):
  execute()
  wave()
  noise_line()
  captcha_noise_bg_bitmaps()
  captcha_bitmaps()

char_cube3d:: (11 methods):
  char_cube3d()
  drawchar()
  range()
  vectorlen()
  normalize()
  cross_product()
  sum()
  sum2()
  scale()
  gen_poly()
  dimensions()

colour_manager:: (14 methods):
  colour_manager()
  get_resource()
  name_colour()
  allocate_named()
  allocate()
  random_colour()
  colour_scheme()
  mono_range()
  model_convert()
  hsv2rgb()
  rgb2hsv()
  normalize_hue()
  ah2h()
  h2ah()


Class: captcha  - X-Ref

Original Author - Xore (Robert Hetzler)
With contributions from Neothermic

execute($code, $seed)   X-Ref
Create the image containing $code with a seed of $seed


wave($img)   X-Ref
Sinus


noise_line($img, $min_x, $min_y, $max_x, $max_y, $bg, $font, $non_font)   X-Ref
Noise line


captcha_noise_bg_bitmaps()   X-Ref
No description

captcha_bitmaps()   X-Ref
Return bitmaps


Class: char_cube3d  - X-Ref


char_cube3d(&$bitmaps, $letter)   X-Ref
No description

drawchar($scale, $xoff, $yoff, $img, $background, $colours)   X-Ref
Draw a character


range()   X-Ref
No description

vectorlen($vector)   X-Ref
Vector length


normalize(&$vector, $length = 1)   X-Ref
Normalize


cross_product($vector1, $vector2)   X-Ref
No description

sum($vector1, $vector2)   X-Ref
No description

sum2($vector1, $vector2)   X-Ref
No description

scale($vector, $length)   X-Ref
No description

gen_poly($xoff, $yoff, &$vec1, &$vec2, &$vec3, &$vec4)   X-Ref
No description

dimensions($size)   X-Ref
dimensions


Class: colour_manager  - X-Ref


colour_manager($img, $background = false, $mode = 'ahsv')   X-Ref
Create the colour manager, link it to the image resource


get_resource($named_colour)   X-Ref
Lookup a named colour resource


name_colour($name, $resource)   X-Ref
Assign a name to a colour resource


allocate_named($name, $colour, $mode = false)   X-Ref
names and allocates a colour resource


allocate($colour, $mode = false)   X-Ref
allocates a specified colour into the image


random_colour($params = array()   X-Ref
randomly generates a colour, with optional params


colour_scheme($resource, $include_original = true)   X-Ref
No description

mono_range($resource, $count = 5, $include_original = true)   X-Ref
No description

model_convert($colour, $from_model, $to_model)   X-Ref
Convert from one colour model to another


hsv2rgb($hsv)   X-Ref
Slightly altered from wikipedia's algorithm


rgb2hsv($rgb)   X-Ref
(more than) Slightly altered from wikipedia's algorithm


normalize_hue(&$hue)   X-Ref
No description

ah2h($ahue)   X-Ref
Alternate hue to hue


h2ah($hue)   X-Ref
hue to Alternate hue




Generated: Wed Oct 2 15:03:47 2013 Cross-referenced by PHPXref 0.7.1