ImageTools

User Documentation: Functions: calcoffset

int calcoffset( string calc , int pixels , int markpixels )

Description

Calculates offset.

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.
markpixels Original amount of mark pixels for calculation to abide by.

Usage

$vif->calcoffset($calc, $pixels, $markpixels);