It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.

Class Gradient


Extended by Com\Tecnick\Pdf\Graph\Style
Extended by Com\Tecnick\Pdf\Graph\Transform
Extended by Com\Tecnick\Pdf\Graph\Raw
Extended by Com\Tecnick\Pdf\Graph\Gradient

Direct known subclasses

Namespace: Com\Tecnick\Pdf\Graph
Package: PdfGraph
Category: Library
Copyright: 2011-2016 Nicola Asuni - LTD
License: GNU-LGPL v3 (see LICENSE.TXT)
Author: Nicola Asuni [email protected]
Since: 2011-05-23
Located at Gradient.php
Methods summary
public array
# getGradientsArray( )

Returns the gradients array

public string
# getLinearGradient( float $posx, float $posy, float $width, float $height, string $colorstart, string $colorend, array $coords = array(0,0,1,0) )

Get a linear colour gradient command.

public string
# getRadialGradient( float $posx, float $posy, float $width, float $height, string $colorstart, string $colorend, array $coords = array(0.5,0.5,0.5,0.5,1) )

Get a radial colour gradient command.

public string
# getClippingRect( float $posx, float $posy, float $width, float $height )

Rectangular clipping area.

public string
# getGradientTransform( float $posx, float $posy, float $width, float $height )

Rectangular clipping area.

public string
# getGradient( integer $type, array $coords, array $stops, string $bgcolor, boolean $antialias = false )

Get a color gradient command.

protected array
# getGradientStops( array $grad, array $stops )

Process the gradient stops.

public string
# getCoonsPatchMesh( float $posx, float $posy, float $width, float $height, string $colll = 'yellow', string $collr = 'blue', string $colur = 'green', string $colul = 'red', array $coords = array( 0.00,0.00, 0.33,0.00, 0.67,0.00, 1.00,0.00, 1.00,0.33, 1.00,0.67, 1.00,1.00, 0.67,1.00, 0.33,1.00, 0.00,1.00, 0.00,0.67, 0.00,0.33 ), array $coords_min = 0, array $coords_max = 1, boolean $antialias = false )

Paints a coons patch mesh.

public string
# getColorRegistrationBar( float $posx, float $posy, float $width, float $height, boolean $vertical = false, array $colors = array( array('g(0%)', 'g(100%)'), // GRAY : black to white array('rgb(100%,0%,0%)', 'rgb(100%,100%,100%)'), // RGB : red to white array('rgb(0%,100%,0%)', 'rgb(100%,100%,100%)'), // RGB : green to white array('rgb(0%,0%,100%)', 'rgb(100%,100%,100%)'), // RGB : blue to white array('cmyk(100%,0%,0,0%)', 'cmyk(0%,0%,0,0%)'), // CMYK : cyan to white array('cmyk(0%,100%,0,0%)', 'cmyk(0%,0%,0,0%)'), // CMYK : magenta to white array('cmyk(0%,0%,100,0%)', 'cmyk(0%,0%,0,0%)'), // CMYK : yellow to white array('cmyk(0%,0%,0,100%)', 'cmyk(0%,0%,0,0%)'), // CMYK : black to white ) )

Paints registration bars with color transtions

public string
# getCropMark( float $posx, float $posy, float $width, float $height, string $type = 'TBLR', array $style = array() )

Get a crop-mark.

public string
# getOverprint( boolean $stroking = true, boolean $nonstroking = '', integer $mode = 0 )

Get overprint mode for stroking (OP) and non-stroking (op) painting operations. (Check the "Entries in a Graphics State Parameter Dictionary" on PDF 32000-1:2008).

public string
# getAlpha( float $stroking = 1, string $bmv = 'Normal', float $nonstroking = '', boolean $ais = false )

Set alpha for stroking (CA) and non-stroking (ca) operations.

Methods inherited from Com\Tecnick\Pdf\Graph\Raw
degToRad(), getRawCurve(), getRawCurveV(), getRawCurveY(), getRawEllipticalArc(), getRawLine(), getRawPoint(), getRawRect(), getVectorsAngle(), setRawEllipticalArcAngles()
Methods inherited from Com\Tecnick\Pdf\Graph\Transform
getCtmProduct(), getHorizMirroring(), getHorizScaling(), getHorizSkewing(), getHorizTranslation(), getPointMirroring(), getPropScaling(), getReflection(), getRotation(), getScaling(), getSkewing(), getStartTransform(), getStopTransform(), getTransformIndex(), getTransformStack(), getTransformation(), getTranslation(), getVertMirroring(), getVertScaling(), getVertSkewing(), getVertTranslation()
Methods inherited from Com\Tecnick\Pdf\Graph\Style
add(), getCurrentStyleArray(), getCurrentStyleItem(), getExtGState(), getLastStyleProperty(), getLineModeCmd(), getModeWithoutClose(), getModeWithoutFill(), getModeWithoutStroke(), getPathPaintOp(), getStyle(), getStyleCmd(), init(), isClosingMode(), isFillingMode(), isStrokingMode(), pop(), restoreStyleStaus(), saveStyleStaus()
Methods inherited from Com\Tecnick\Pdf\Graph\Base
__construct(), getObjectNumber(), getOutExtGState(), getOutExtGStateResources(), getOutGradientCols(), getOutGradientResources(), getOutGradientShaders(), getOutPatternObj(), setKUnit(), setPageHeight(), setPageWidth()
Constants inherited from Com\Tecnick\Pdf\Graph\Base
Properties summary
protected array $gradients

Array of gradients

# array()
Properties inherited from Com\Tecnick\Pdf\Graph\Transform
$ctm, $ctmid
Properties inherited from Com\Tecnick\Pdf\Graph\Style
$extgstates, $kunit, $linecapmap, $linejoinmap, $ppopmap, $style, $styleid, $stylemark
Properties inherited from Com\Tecnick\Pdf\Graph\Base
$col, $enc, $pageh, $pagew, $pdfa, $pon

? 2004-2019 – Nicola Asuni - - All rights reserved.
about - disclaimer - privacy