File: /graphics.inc.php

Description

This file is part of the VCL for PHP project

Copyright (c) 2004-2008 qadram software S.L. <support@qadram.com>

Checkout AUTHORS file for more information on the developers

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Classes defined in this file

CLASS NAME

DESCRIPTION

Layout Layout encapsulation to allow any component to hold controls and render them in very different ways
Font Font encapsulates all properties required to represent a font on the browser.
Pen Pen is used to draw lines or outline shapes on a canvas.
Brush Brush represents the color and pattern used to fill solid shapes.
Canvas Canvas provides an abstract drawing space for objects that must render their own images.

Include/Require Statements

Global Variables

Constants

ABS_XY_LAYOUT (line 57)

ABS_XY_LAYOUT : 'ABS_XY_LAYOUT'

caCapitalize (line 41)

caCapitalize : 'caCapitalize'

caLowerCase (line 43)

caLowerCase : 'caLowerCase'

caNone (line 44)

caNone : 'caNone'

caUpperCase (line 42)

caUpperCase : 'caUpperCase'

COL_LAYOUT (line 61)

COL_LAYOUT : 'COL_LAYOUT'

FLOW_LAYOUT (line 55)

FLOW_LAYOUT : 'FLOW_LAYOUT'

fsItalic (line 38)

fsItalic : 'fsItalic'

fsNormal (line 37)

fsNormal : 'fsNormal'

fsOblique (line 39)

fsOblique : 'fsOblique'

GRIDBAG_LAYOUT (line 59)

GRIDBAG_LAYOUT : 'GRIDBAG_LAYOUT'

psDash (line 49)

psDash : 'psDash'

psDashDot (line 50)

psDashDot : 'psDashDot'

psDashDotDot (line 51)

psDashDotDot : 'psDashDotDot'

psDot (line 52)

psDot : 'psDot'

psSolid (line 53)

psSolid : 'psSolid'

REL_XY_LAYOUT (line 58)

REL_XY_LAYOUT : 'REL_XY_LAYOUT'

ROW_LAYOUT (line 60)

ROW_LAYOUT : 'ROW_LAYOUT'

taCenter (line 33)

taCenter : 'taCenter'

taJustify (line 35)

taJustify : 'taJustify'

taLeft (line 32)

taLeft : 'taLeft'

taNone (line 31)

taNone : 'taNone'

taRight (line 34)

taRight : 'taRight'

vaNormal (line 46)

vaNormal : 'vaNormal'

vaSmallCaps (line 47)

vaSmallCaps : 'vaSmallCaps'

XY_LAYOUT (line 56)

XY_LAYOUT : 'XY_LAYOUT'

Functions

colorFromHex (line 1184)

int colorFromHex( resource $img, string $hexColor)

Create color based on HEX RGB mask

This function creates a color using an hexadecimal RGB mask, the mask can be prefixed with # and it returns the color resource.

Parameters

  • resource $img: Image resource
  • string $hexColor: Color in HTML format

createPenStyle (line 1203)

array createPenStyle( resource $img, string $penStyle, string $baseColor, string $bgColor)

Create Pen based on PenStyle

This function creates an array depending on the pen style to represent the pattern for such pen.

Parameters

  • resource $img: Image resource to work with
  • string $penStyle: Style of the pen to create
  • string $baseColor: Base color to use to create the pen
  • string $bgColor: Background color to use to create the pen


Documentation generated on Fri, 26 Dec 2008 11:45:25 +0100 by phpDocumentor 1.4.0a2