Class Dimensions

Description

Describes area dimensions.

Located in /gd2imaging.php (line 134)


	
			
Variable Summary
int $height
int $width
Method Summary
Dimensions __construct (int $width, int $height)
Dimensions add ([int $x = 0], [int $y = 0])
int getAreaSize ()
double getDiagonalWidth ()
int[] getSize ()
Dimensions multiply (int $x, int $y)
Variables
int $height (line 148)

Height dimension.

  • access: public
int $width (line 141)

Width dimension.

  • access: public
Methods
Constructor __construct (line 157)

Stores area dimensions.

  • access: public
Dimensions __construct (int $width, int $height)
  • int $width: Width of the area.
  • int $height: Height of the area.
add (line 191)

Adds values to width and height respectively.

  • access: public
Dimensions add ([int $x = 0], [int $y = 0])
  • int $x: Value to add to a width dimension.
  • int $y: Value to add to a height dimension.
getAreaSize (line 211)

Returns the size of area.

  • access: public
int getAreaSize ()
getDiagonalWidth (line 202)

Returns width of the diagonal line.

  • access: public
double getDiagonalWidth ()
getSize (line 167)

Returns an array containing width and height of this area.

  • access: public
int[] getSize ()
multiply (line 178)

Multiplies width and height by a given values.

  • access: public
Dimensions multiply (int $x, int $y)
  • int $x: Value to multiply a width dimension.
  • int $y: Value to multiply a height dimension.

Documentation generated on Fri, 04 Nov 2011 17:56:15 +0100 by phpDocumentor 1.4.2