Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<ps_saveps_set_border_color>
^PS FunctionsLast updated: Mon, 26 Oct 2026

ps_scale

(PECL ps >= 1.1.0)

ps_scale — Sets scaling factor

Description

function ps_scale(resource $psdoc, float $x, float $y): bool

Sets horizontal and vertical scaling of the coordinate system.

Parameters

psdoc

Resource identifier of the postscript file as returned by ps_new().

x

Scaling factor in horizontal direction.

y

Scaling factor in vertical direction.

Return Values

Returns true on success or false on failure.

See Also


<ps_saveps_set_border_color>
^PS FunctionsLast updated: Mon, 26 Oct 2026