Libchart

Simple PHP chart drawing library
  • Introduction
  • Download
  • Sample Code
  • Reference API
  • Links
  • Main Page
  • Classes
  • Directories
  • Class List
  • Class Members

Rectangle Class Reference

List of all members.

Public Member Functions

 Rectangle ($x1, $y1, $x2, $y2)
 getPaddedRectangle ($padding)

Public Attributes

 $x1
 $y1
 $x2
 $y2

Detailed Description

A rectangle identified by the top-left and the bottom-right corners.

Author:
Jean-Marc Trémeaux (jm.tremeaux at gmail.com) on 27 july 2007


Member Function Documentation

Rectangle::Rectangle ( $  x1,
$  y1,
$  x2,
$  y2 
)

Creates a new rectangle

Parameters:
resource GD image resource

Rectangle::getPaddedRectangle ( $  padding  ) 

Apply a padding and returns the resulting rectangle.

Returns:
Resulting rectangle


Member Data Documentation

Rectangle::$x1

Top left X

Rectangle::$y1

Top left Y

Rectangle::$x2

Bottom right X

Rectangle::$y2

Bottom right Y


The documentation for this class was generated from the following file:
  • Rectangle.php

Site last modified August 13th, 2007 by Jean-Marc Trémeaux