Admidio API
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Packages

  • com
    • tecnick
      • tcpdf
  • None
  • PHPMailer
    • easypeasyics
  • PHPWavUtils
  • Securimage
    • classes

Classes

  • Securimage
  • Securimage_Color

Class Securimage_Color

Color object for Securimage CAPTCHA

Package: Securimage\classes
Copyright: 2016 Drew Phillips
Author: Drew Phillips drew@drew-phillips.com
Version: 3.0
Since: 2.0
Located at securimage.php

Methods summary

public
# __construct( string $color = '#ffffff' )

Create a new Securimage_Color object.

Create a new Securimage_Color object.

Constructor expects 1 or 3 arguments.

When passing a single argument, specify the color using HTML hex format.

When passing 3 arguments, specify each RGB component (from 0-255) individually.

Examples: $color = new Securimage_Color('#0080FF'); $color = new Securimage_Color(0, 128, 255);

Parameters

$color
The html color code to use

Throws

Exception
If any color value is not valid
protected
# constructRGB( integer $red, integer $green, integer $blue )

Construct from an rgb triplet

Construct from an rgb triplet

Parameters

$red
The red component, 0-255
$green
The green component, 0-255
$blue
The blue component, 0-255
protected
# constructHTML( string $color )

Construct from an html hex color code

Construct from an html hex color code

Parameters

$color

Properties summary

public integer $r

Red value (0-255)

Red value (0-255)

#
public integer $g

Gree value (0-255)

Gree value (0-255)

#
public integer $b

Blue value (0-255)

Blue value (0-255)

#
Admidio API API documentation generated by ApiGen