Add FrameFilters::fixDisplayRatio method

This commit is contained in:
Romain Neutron 2013-09-05 11:16:26 +02:00
commit bb31915285
3 changed files with 44 additions and 1 deletions

View file

@ -21,4 +21,19 @@ class FrameFilters
{
$this->frame = $frame;
}
/**
* Fixes the display ratio of the output frame.
*
* In case the sample ratio and display ratio are different, image may be
* anamorphozed. This filter fixes this by specifying the output size.
*
* @return FrameFilters
*/
public function fixDisplayRatio()
{
$this->frame->addFilter(new DisplayRatioFixerFilter());
return $this;
}
}