Action/Resize/Base.php

Show: inherited
Table of Contents

\phMagick\Action\Resize\Base

Package: action\resize

Base class for resize actions

Parent(s)
\phMagick\Core\Action
Children
\phMagick\Action\Resize\Stretch
\phMagick\Action\Resize\Proportional

Properties

PropertyprotectedInteger  $height= '0'

holds height

Default value0Details
Type
Integer
PropertyprotectedInteger  $width= '0'

holds width

Default value0Details
Type
Integer

Methods

methodpublic__construct( String $source, String $destination, Integer $width = 0, Integer $height = 0 ) : void

Contructs the resize class and sets base parameters

Parameters
Name Type Description
$source String

the filename of the source file

$destination String

the name of the new file

$width Integer

desired width

$height Integer

desired height

Details
InheritDoc
 
methodpublicgetDestination( ) : void

methodpublicgetHeight( ) : Integer

Gets the height of the resized image

Returns
Type Description
Integer
methodpublicgetShellCommand( ) : void
abstract

methodpublicgetSource( ) : void

methodpublicgetWidth( ) : Integer

Gets the width of the resized image

Returns
Type Description
Integer
methodprotectedisValidGravity( ) : void

methodpublicsetDestination( ) : void

methodpublicsetHeight( Integer $height ) : void

Sets the height of the resized image

Parameters
Name Type Description
$height Integer
methodpublicsetSource( ) : void

methodpublicsetWidth( Integer $width ) : void

Sets the width of the resized image

Parameters
Name Type Description
$width Integer
Details
InheritDoc
 
Documentation was generated by DocBlox 0.17.2.