ImageTools

User Documentation: Functions: calcpixels

int calcpixels( string calc , int pixels )

Description

Calculates pixels.

Parameters

calc Set a number value or calculate number values with: px (pixels), pct (percent), in (inches), cm (centimeters), mm (millimeters), pt (points), pc (picas), + (adding), - (subtracting), * (multipying), / (dividing), ~ (randomizing)
pixels Original amount of pixels for calculation to abide by.

Usage

$vif->calcpixels($calc, $pixels);