Image_Canvas
[ class tree: Image_Canvas ] [ index: Image_Canvas ] [ all elements ]

Class: Image_Canvas_GD_JPG

Source Location: /Image_Canvas-0.3.5/Image/Canvas/GD/JPG.php

Class Overview

Image_Canvas
   |
   --Image_Canvas_WithMap
      |
      --Image_Canvas_GD
         |
         --Image_Canvas_GD_JPG

JPEG Canvas class.


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2003-2009 The PHP Group

Methods


Inherited Variables

Inherited Methods

Class: Image_Canvas_GD

Image_Canvas_GD::Image_Canvas_GD()
Create the GD canvas.
Image_Canvas_GD::addText()
Writes text
Image_Canvas_GD::drawEnd()
Draw a line end
Image_Canvas_GD::ellipse()
Draw an ellipse
Image_Canvas_GD::image()
Overlay image
Image_Canvas_GD::line()
Draw a line
Image_Canvas_GD::pieslice()
Draw a pie slice
Image_Canvas_GD::polygon()
Parameter array:
Image_Canvas_GD::rectangle()
Draw a rectangle
Image_Canvas_GD::setClipping()
Set clipping to occur
Image_Canvas_GD::setFillImage()
Sets an image that should be used for filling
Image_Canvas_GD::setFont()
Sets the font options.
Image_Canvas_GD::textHeight()
Get the height of a text.
Image_Canvas_GD::textWidth()
Get the width of a text,
Image_Canvas_GD::toHtml()
Get a canvas specific HTML tag.

Class: Image_Canvas_WithMap

Image_Canvas_WithMap::Image_Canvas_WithMap()
Create the canvas.
Image_Canvas_WithMap::addSpline()
Adds "splined" vertex to a polygon
Image_Canvas_WithMap::addText()
Writes text
Image_Canvas_WithMap::addVertex()
Adds vertex to a polygon
Image_Canvas_WithMap::ellipse()
Draw an ellipse
Image_Canvas_WithMap::getImageMap()
Get the imagemap
Image_Canvas_WithMap::image()
Overlay image
Image_Canvas_WithMap::line()
Draw a line
Image_Canvas_WithMap::pieslice()
Draw a pie slice
Image_Canvas_WithMap::polygon()
Draws a polygon
Image_Canvas_WithMap::rectangle()
Draw a rectangle

Class: Image_Canvas

Image_Canvas::Image_Canvas()
Create the canvas.
Image_Canvas::addSpline()
Adds "splined" vertex to a polygon
Image_Canvas::addText()
Writes text
Image_Canvas::addVertex()
Adds vertex to a polygon
Image_Canvas::drawEnd()
Draw a line end
Image_Canvas::ellipse()
Draw an ellipse
Image_Canvas::endGroup()
End the "current" group.
Image_Canvas::factory()
Canvas factory method.
Image_Canvas::getHeight()
Get the height of the canvas
Image_Canvas::getWidth()
Get the width of the canvas
Image_Canvas::image()
Overlay image
Image_Canvas::line()
Draw a line
Image_Canvas::pieslice()
Draw a pie slice
Image_Canvas::polygon()
Draws a polygon
Image_Canvas::rectangle()
Draw a rectangle
Image_Canvas::reset()
Reset the canvas.
Image_Canvas::save()
Save the result of the canvas to a file
Image_Canvas::setClipping()
Set clipping to occur
Image_Canvas::setDefaultFont()
Sets the default font options.
Image_Canvas::setFill()
Sets the style of the filling of drawn objects.
Image_Canvas::setFillColor()
Sets the color of the filling of drawn objects
Image_Canvas::setFillImage()
Sets an image that should be used for filling
Image_Canvas::setFont()
Sets the font options.
Image_Canvas::setGradientFill()
Sets a gradient fill
Image_Canvas::setLineColor()
Sets the color of the line(s) to be drawn
Image_Canvas::setLineThickness()
Sets the thickness of the line(s) to be drawn
Image_Canvas::show()
Output the result of the canvas to the browser
Image_Canvas::startGroup()
Start a group.
Image_Canvas::textHeight()
Get the height of a text,
Image_Canvas::textWidth()
Get the width of a text,
Image_Canvas::toHtml()
Get a canvas specific HTML tag.

Class Details

[line 49]
JPEG Canvas class.


[ Top ]


Method Detail

Image_Canvas_GD_JPG (Constructor)   [line 70]

Image_Canvas_GD_JPG Image_Canvas_GD_JPG( array $param)

Create the JPEG canvas

Additional parameters other than those available for common Image_Graph_Canvas_GD class are:

'quality' The JPEG quality in as a percentage value from 0 (lowest quality, smallest file) to 100 (highest quality, biggest file)


Parameters:

array   $param     Parameter array

[ Top ]

save   [line 115]

void save( [array $param = false])

Output the result of the canvas
  • Abstract:

Overrides Image_Canvas::save() (Save the result of the canvas to a file)

Parameters:

array   $param     Parameter array

[ Top ]

show   [line 98]

void show( [array $param = false])

Output the result of the canvas
  • Abstract:

Overrides Image_Canvas::show() (Output the result of the canvas to the browser)

Parameters:

array   $param     Parameter array

[ Top ]


Documentation generated on Fri, 27 Jul 2012 07:30:09 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.