Свойство | Тип | Описание | |
---|---|---|---|
$allowUpScaling | boolean | ||
$height | integer | ||
$maximumHeight | integer | ||
$maximumWidth | integer | ||
$minimumHeight | integer | ||
$minimumWidth | integer | ||
$position | integer | ||
$ratioMode | string | One of the ImagineImageInterface::RATIOMODE_* constants | |
$width | integer |
Метод | Описание | |
---|---|---|
applyToImage ( Imagine\Image\ImageInterface $image ) : Imagine\Image\ImageInterface | Applies this adjustment to the given Imagine Image object | |
canBeApplied ( Imagine\Image\ImageInterface $image ) : boolean | Check if this Adjustment can or should be applied to its ImageVariant. | |
getAllowUpScaling ( ) : boolean | Returns allowUpScaling | |
getHeight ( ) : integer | Returns height | |
getMaximumHeight ( ) : integer | Returns maximumHeight | |
getMaximumWidth ( ) : integer | Returns maximumWidth | |
getMinimumHeight ( ) : integer | Returns minimumHeight | |
getMinimumWidth ( ) : integer | Returns minimumWidth | |
getRatioMode ( ) : string | Returns ratioMode | |
getWidth ( ) : integer | Returns width | |
setAllowUpScaling ( boolean $allowUpScaling ) : void | Sets allowUpScaling | |
setHeight ( integer $height ) : void | Sets height | |
setMaximumHeight ( integer $maximumHeight ) : void | Sets maximumHeight | |
setMaximumWidth ( integer $maximumWidth ) : void | Sets maximumWidth | |
setMinimumHeight ( integer $minimumHeight ) : void | Sets minimumHeight | |
setMinimumWidth ( integer $minimumWidth ) : void | Sets minimumWidth | |
setRatioMode ( string $ratioMode ) : void | Sets ratioMode | |
setWidth ( integer $width ) : void | Sets width |
Метод | Описание | |
---|---|---|
calculateDimensions ( Imagine\Image\BoxInterface $originalDimensions ) : Imagine\Image\BoxInterface | Calculates and returns the dimensions the image should have according all parameters set in this adjustment. | |
calculateOutboundBox ( Imagine\Image\BoxInterface $originalDimensions, integer $requestedWidth, integer $requestedHeight ) : Imagine\Image\BoxInterface | Calculate the final dimensions for an outbound box. usually exactly the requested width and height unless that would require upscaling and it is not allowed. | |
calculateOutboundScalingDimensions ( Imagine\Image\BoxInterface $imageSize, Imagine\Image\BoxInterface $requestedDimensions ) : Imagine\Image\BoxInterface | Calculates a resize dimension box that allows for outbound resize. | |
calculateScalingToHeight ( Imagine\Image\BoxInterface $originalDimensions, integer $requestedHeight ) : Imagine\Image\BoxInterface | Calculates new dimensions with a requested height applied. Takes upscaling into consideration. | |
calculateScalingToWidth ( Imagine\Image\BoxInterface $originalDimensions, integer $requestedWidth ) : Imagine\Image\BoxInterface | Calculates new dimensions with a requested width applied. Takes upscaling into consideration. | |
calculateWithFixedDimensions ( Imagine\Image\BoxInterface $originalDimensions, integer $requestedWidth, integer $requestedHeight ) : Imagine\Image\BoxInterface | ||
resize ( Imagine\Image\ImageInterface $image, string $mode = ImageInterface::RATIOMODE_INSET, string $filter = ImagineImageInterface::FILTER_UNDEFINED ) : Imagine\Image\ManipulatorInterface | Executes the actual resizing operation on the Imagine image. |
public applyToImage ( Imagine\Image\ImageInterface $image ) : Imagine\Image\ImageInterface | ||
$image | Imagine\Image\ImageInterface | |
Результат | Imagine\Image\ImageInterface |
protected calculateDimensions ( Imagine\Image\BoxInterface $originalDimensions ) : Imagine\Image\BoxInterface | ||
$originalDimensions | Imagine\Image\BoxInterface | Dimensions of the unadjusted image |
Результат | Imagine\Image\BoxInterface |
protected calculateOutboundBox ( Imagine\Image\BoxInterface $originalDimensions, integer $requestedWidth, integer $requestedHeight ) : Imagine\Image\BoxInterface | ||
$originalDimensions | Imagine\Image\BoxInterface | |
$requestedWidth | integer | |
$requestedHeight | integer | |
Результат | Imagine\Image\BoxInterface |
protected calculateOutboundScalingDimensions ( Imagine\Image\BoxInterface $imageSize, Imagine\Image\BoxInterface $requestedDimensions ) : Imagine\Image\BoxInterface | ||
$imageSize | Imagine\Image\BoxInterface | |
$requestedDimensions | Imagine\Image\BoxInterface | |
Результат | Imagine\Image\BoxInterface |
protected calculateScalingToHeight ( Imagine\Image\BoxInterface $originalDimensions, integer $requestedHeight ) : Imagine\Image\BoxInterface | ||
$originalDimensions | Imagine\Image\BoxInterface | |
$requestedHeight | integer | |
Результат | Imagine\Image\BoxInterface |
protected calculateScalingToWidth ( Imagine\Image\BoxInterface $originalDimensions, integer $requestedWidth ) : Imagine\Image\BoxInterface | ||
$originalDimensions | Imagine\Image\BoxInterface | |
$requestedWidth | integer | |
Результат | Imagine\Image\BoxInterface |
protected calculateWithFixedDimensions ( Imagine\Image\BoxInterface $originalDimensions, integer $requestedWidth, integer $requestedHeight ) : Imagine\Image\BoxInterface | ||
$originalDimensions | Imagine\Image\BoxInterface | |
$requestedWidth | integer | |
$requestedHeight | integer | |
Результат | Imagine\Image\BoxInterface |
public canBeApplied ( Imagine\Image\ImageInterface $image ) : boolean | ||
$image | Imagine\Image\ImageInterface | |
Результат | boolean |
public getAllowUpScaling ( ) : boolean | ||
Результат | boolean |
public getMaximumHeight ( ) : integer | ||
Результат | integer |
public getMaximumWidth ( ) : integer | ||
Результат | integer |
public getMinimumHeight ( ) : integer | ||
Результат | integer |
public getMinimumWidth ( ) : integer | ||
Результат | integer |
protected resize ( Imagine\Image\ImageInterface $image, string $mode = ImageInterface::RATIOMODE_INSET, string $filter = ImagineImageInterface::FILTER_UNDEFINED ) : Imagine\Image\ManipulatorInterface | ||
$image | Imagine\Image\ImageInterface | |
$mode | string | |
$filter | string | |
Результат | Imagine\Image\ManipulatorInterface |
public setAllowUpScaling ( boolean $allowUpScaling ) : void | ||
$allowUpScaling | boolean | |
Результат | void |
public setMaximumHeight ( integer $maximumHeight ) : void | ||
$maximumHeight | integer | |
Результат | void |
public setMaximumWidth ( integer $maximumWidth ) : void | ||
$maximumWidth | integer | |
Результат | void |
public setMinimumHeight ( integer $minimumHeight ) : void | ||
$minimumHeight | integer | |
Результат | void |
public setMinimumWidth ( integer $minimumWidth ) : void | ||
$minimumWidth | integer | |
Результат | void |
public setRatioMode ( string $ratioMode ) : void | ||
$ratioMode | string | One of the \Neos\Media\Domain\Model\ImageInterface::RATIOMODE_* constants |
Результат | void |
protected string $ratioMode | ||
Результат | string |