downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Imagick::setImageVirtualPixelMethod> <Imagick::setImageType
Last updated: Fri, 30 Oct 2009

view this page in

Imagick::setImageUnits

(PECL imagick 2.0.0)

Imagick::setImageUnitsSets the image units of resolution

Beschreibung

bool Imagick::setImageUnits ( int $units )
Warnung

Diese Funktion ist bis jetzt nicht dokumentiert. Es steht nur die Liste der Argumente zur Verfügung.

Sets the image units of resolution.

Parameter-Liste

units

Rückgabewerte

Liefert TRUE bei Erfolg.



add a note add a note User Contributed Notes
Imagick::setImageUnits
salomonsanz at gmail dot com
08-Dec-2008 08:56
$source = 'miphoto.jpg';
$imagick = new Imagick($source);
$imagick -> setImageUnits(2);
//0=undefined, 1=pixelsperInch, 2=PixelsPerCentimeter
$info = $imagick -> identifyImage();
print_r($info);
//ouput
/*
Array
(
[units] => PixelsPerCentimeter
)

 
show source | credits | stats | sitemap | contact | advertising | mirror sites