- Classes
- Namespaces
- Interfaces
- Traits
- Index

Class

# Imagine\Filter\Basic\Resize

class Resize implements FilterInterface

A resize filter

## Methods

| __construct(BoxInterface $size, string $filter = ImageInterface::FILTER_UNDEFINED) Constructs Resize filter with given width and height |
ImageInterface | apply(ImageInterface $image) Applies scheduled transformation to ImageInterface instance Returns processed ImageInterface instance |

## Details

###
at line 35
`public __construct(BoxInterface $size, string $filter = ImageInterface::FILTER_UNDEFINED)`

Constructs Resize filter with given width and height

#### Parameters

BoxInterface | $size |
string | $filter |

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

Applies scheduled transformation to ImageInterface instance Returns processed ImageInterface instance

#### Parameters

ImageInterface | $image |

#### Return Value

ImageInterface |