TrimCommand
        
        extends ResizeCommand
    
    
            
            in package
            
        
    
    
    
Table of Contents
Properties
- $arguments : array<string|int, mixed>
- Arguments of command
- $output : mixed
- Output of command
Methods
- __construct() : mixed
- Creates new command instance
- argument() : Argument
- Creates new argument instance from given argument key
- execute() : bool
- Trims away parts of an image
- getOutput() : mixed
- Returns output data of current command
- hasOutput() : bool
- Determines if current instance has output data
- setOutput() : mixed
- Sets output data of current command
- modify() : bool
- Wrapper function for 'imagecopyresampled'
Properties
$arguments
Arguments of command
    public
        array<string|int, mixed>
    $arguments
    
    
    
    
    
$output
Output of command
    protected
        mixed
    $output
    
    
    
    
    
Methods
__construct()
Creates new command instance
    public
                    __construct(array<string|int, mixed> $arguments) : mixed
    Parameters
- $arguments : array<string|int, mixed>
argument()
Creates new argument instance from given argument key
    public
                    argument(int $key) : Argument
    Parameters
- $key : int
Return values
Argumentexecute()
Trims away parts of an image
    public
                    execute(Image $image) : bool
    Parameters
- $image : Image
Return values
boolgetOutput()
Returns output data of current command
    public
                    getOutput() : mixed
    hasOutput()
Determines if current instance has output data
    public
                    hasOutput() : bool
    Return values
boolsetOutput()
Sets output data of current command
    public
                    setOutput(mixed $value) : mixed
    Parameters
- $value : mixed
modify()
Wrapper function for 'imagecopyresampled'
    protected
                    modify(Image $image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $dst_w, int $dst_h, int $src_w, int $src_h) : bool
    Parameters
- $image : Image
- $dst_x : int
- $dst_y : int
- $src_x : int
- $src_y : int
- $dst_w : int
- $dst_h : int
- $src_w : int
- $src_h : int