Imagine\Filter\Advanced\RelativeResize | Imagine API

- Classes
- Namespaces
- Interfaces
- Index

Imagine API
Class

# Imagine\Filter\Advanced\RelativeResize

class RelativeResize implements FilterInterface

The RelativeResize filter allows images to be resized relative to their existing dimensions.

## Methods

| __construct(string $method, mixed $parameter) Constructs a RelativeResize filter with the given method and argument. |
ImageInterface | apply(ImageInterface $image) Applies scheduled transformation to ImageInterface instance Returns processed ImageInterface instance |

## Details

###
at line 33
`public __construct(string $method, mixed $parameter)`

Constructs a RelativeResize filter with the given method and argument.

#### Parameters

string | $method | BoxInterface method
mixed | $parameter | Parameter for BoxInterface method

###
at line 46
`public ImageInterface apply(ImageInterface $image)`

Applies scheduled transformation to ImageInterface instance Returns processed ImageInterface instance

#### Parameters

ImageInterface | $image |

#### Return Value

ImageInterface |