Overview

Packages

  • Image
  • None

Classes

  • Horde_Image
  • Horde_Image_Base
  • Horde_Image_Effect
  • Horde_Image_Effect_Border
  • Horde_Image_Effect_Gd_DropShadow
  • Horde_Image_Effect_Gd_RoundCorners
  • Horde_Image_Effect_Gd_TextWatermark
  • Horde_Image_Effect_Gd_Unsharpmask
  • Horde_Image_Effect_Im_Border
  • Horde_Image_Effect_Im_CenterCrop
  • Horde_Image_Effect_Im_Composite
  • Horde_Image_Effect_Im_DropShadow
  • Horde_Image_Effect_Im_LiquidResize
  • Horde_Image_Effect_Im_PhotoStack
  • Horde_Image_Effect_Im_PolaroidImage
  • Horde_Image_Effect_Im_RoundCorners
  • Horde_Image_Effect_Im_TextWatermark
  • Horde_Image_Effect_Im_Unsharpmask
  • Horde_Image_Effect_Imagick_Border
  • Horde_Image_Effect_Imagick_CenterCrop
  • Horde_Image_Effect_Imagick_Composite
  • Horde_Image_Effect_Imagick_DropShadow
  • Horde_Image_Effect_Imagick_LiquidResize
  • Horde_Image_Effect_Imagick_PhotoStack
  • Horde_Image_Effect_Imagick_PolaroidImage
  • Horde_Image_Effect_Imagick_RoundCorners
  • Horde_Image_Effect_Imagick_SmartCrop
  • Horde_Image_Effect_Imagick_TextWatermark
  • Horde_Image_Effect_Imagick_Unsharpmask
  • Horde_Image_Exception
  • Horde_Image_Exif
  • Horde_Image_Exif_Base
  • Horde_Image_Exif_Bundled
  • Horde_Image_Exif_Exiftool
  • Horde_Image_Exif_Parser_Base
  • Horde_Image_Exif_Php
  • Horde_Image_Gd
  • Horde_Image_Im
  • Horde_Image_Imagick
  • Horde_Image_Png
  • Horde_Image_Svg
  • Horde_Image_Swf
  • Horde_Image_Translation
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Image_Swf

This class implements the Horde_Image:: API for SWF, using the PHP Ming extension.

Copyright 2002-2012 Horde LLC (http://www.horde.org/)

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

EmptyIterator implements Iterator, Traversable
Extended by Horde_Image_Base
Extended by Horde_Image_Swf
Package: Image
Author: Chuck Hagenbuch chuck@horde.org
Located at Horde/Image/Swf.php
Methods summary
public
# Horde_Image_swf( mixed $params )
public string
# getContentType( )

Return the content type for this image.

Return the content type for this image.

Returns

string
The content type for this image.

Overrides

Horde_Image_Base::getContentType()
public
# display( )

Display the movie.

Display the movie.

Overrides

Horde_Image_Base::display()
public string
# raw( )

Return the raw data for this image.

Return the raw data for this image.

Returns

string
The raw image data.

Overrides

Horde_Image_Base::raw()
public array
# allocateColor( string $name )

Creates a color that can be accessed in this object. When a color is set, the rgba values are returned in an array.

Creates a color that can be accessed in this object. When a color is set, the rgba values are returned in an array.

Parameters

$name
The name of the color.

Returns

array
The red, green, blue, alpha values of the color.
public
# getFont( mixed $font )
public
# text( string $string, integer $x, integer $y, string $font = 'monospace', string $color = 'black', integer $direction = 0 )

Draws a text string on the image in a specified location, with the specified style information.

Draws a text string on the image in a specified location, with the specified style information.

Parameters

$string
$text The text to draw.
$x
The left x coordinate of the start of the text string.
$y
The top y coordinate of the start of the text string.
$font
The font identifier you want to use for the text.
$color
The color that you want the text displayed in.
$direction
An integer that specifies the orientation of the text.
public
# circle( integer $x, integer $y, integer $r, string $color, string $fill = 'none' )

Draw a circle.

Draw a circle.

Parameters

$x
The x co-ordinate of the centre.
$y
The y co-ordinate of the centre.
$r
The radius of the circle.
$color
The line color of the circle.
$fill
The color to fill the circle.
public
# polygon( array $verts, string $color, string $fill = 'none' )

Draw a polygon based on a set of vertices.

Draw a polygon based on a set of vertices.

Parameters

$verts
<p>$vertices An array of x and y labeled arrays (eg. $vertices[0]['x'], $vertices[0]['y'], ...).</p>
$color
The color you want to draw the polygon with.
$fill
The color to fill the polygon.
public
# rectangle( integer $x, integer $y, integer $width, integer $height, string $color, string $fill = 'none' )

Draw a rectangle.

Draw a rectangle.

Parameters

$x
The left x-coordinate of the rectangle.
$y
The top y-coordinate of the rectangle.
$width
The width of the rectangle.
$height
The height of the rectangle.
$color
The line color of the rectangle.
$fill
The color to fill the rectangle.
public
# roundedRectangle( integer $x, integer $y, integer $width, integer $height, integer $round, string $color = 'black', string $fill = 'none' )

Draw a rectangle.

Draw a rectangle.

Parameters

$x
The left x-coordinate of the rectangle.
$y
The top y-coordinate of the rectangle.
$width
The width of the rectangle.
$height
The height of the rectangle.
$round
The width of the corner rounding.
$color
The line color of the rectangle.
$fill
The color to fill the rectangle.
public
# line( integer $x1, integer $y1, integer $x2, integer $y2, string $color = 'black', string $width = 1 )

Draw a line.

Draw a line.

Parameters

$x1
$x0 The x co-ordinate of the start.
$y1
$y0 The y co-ordinate of the start.
$x2
$x1 The x co-ordinate of the end.
$y2
$y1 The y co-ordinate of the end.
$color
The line color.
$width
The width of the line.
public
# dashedLine( integer $x0, integer $y0, integer $x1, integer $y1, string $color = 'black', string $width = 1, integer $dash_length = 2, integer $dash_space = 2 )

Draw a dashed line.

Draw a dashed line.

Parameters

$x0
The x co-ordinate of the start.
$y0
The y co-ordinate of the start.
$x1
The x co-ordinate of the end.
$y1
The y co-ordinate of the end.
$color
The line color.
$width
The width of the line.
$dash_length
The length of a dash on the dashed line
$dash_space
The length of a space in the dashed line
public
# polyline( array $verts, string $color, string $width = 1 )

Draw a polyline (a non-closed, non-filled polygon) based on a set of vertices.

Draw a polyline (a non-closed, non-filled polygon) based on a set of vertices.

Parameters

$verts
<p>$vertices An array of x and y labeled arrays (eg. $vertices[0]['x'], $vertices[0]['y'], ...).</p>
$color
The color you want to draw the line with.
$width
The width of the line.
public
# arc( integer $x, integer $y, integer $r, integer $start, integer $end, string $color = 'black', string $fill = 'none' )

Draw an arc.

Draw an arc.

Parameters

$x
The x co-ordinate of the centre.
$y
The y co-ordinate of the centre.
$r
The radius of the arc.
$start
The start angle of the arc.
$end
The end angle of the arc.
$color
The line color of the arc.
$fill
The fill color of the arc.
public
# gradientRectangle( integer $x, integer $y, integer $width, integer $height, string $color = 'black', string $fill1 = 'black', string $fill2 = 'white' )

Draw a rectangle filled with a gradient from $color1 to $color2.

Draw a rectangle filled with a gradient from $color1 to $color2.

Parameters

$x
The left x-coordinate of the rectangle.
$y
The top y-coordinate of the rectangle.
$width
The width of the rectangle.
$height
The height of the rectangle.
$color
The outline color of the rectangle.
$fill1
The name of the start color for the gradient.
$fill2
The name of the end color for the gradient.
Methods inherited from Horde_Image_Base
addEffect(), applyEffects(), brush(), clearGeometry(), getCapabilities(), getDimensions(), getImageAtIndex(), getImagePageCount(), getLoadedEffects(), getTmpDir(), getType(), hasCapability(), headers(), loadFile(), loadString(), reset(), setType(), toFile()
Methods inherited from EmptyIterator
current(), key(), next(), rewind(), valid()
Properties summary
public array $_capabilities

Capabilites of this driver.

Capabilites of this driver.

# array('canvas')
public resource $_movie

SWF root movie.

SWF root movie.

#
API documentation generated by ApiGen