Back to PhocaGalleryImage class

Method correctSwitchSize

public static
correctSwitchSize
(mixed $switchHeight, mixed $switchWidth)

Method correctSwitchSize - Source code

public static function correctSwitchSize($switchHeight, $switchWidth)
{
    $switchImage['height'] = $switchHeight;
    $switchImage['centerh'] = $switchHeight / 2 - 18;
    $switchImage['width'] = $switchWidth;
    $switchImage['centerw'] = $switchWidth / 2 - 18;
    $switchImage['height'] = $switchImage['height'] + 5;
    return $switchImage;
}