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, 24 Jul 2009

view this page in

Imagick::setImageUnits

(PECL imagick 2.0.0)

Imagick::setImageUnitsSets the image units of resolution

설명

bool Imagick::setImageUnits ( int $units )
Warning

이 함수는 현재 문서화 되어있지 않습니다; 인수 목록만을 제공합니다.

Sets the image units of resolution.

인수

units

반환값

성공시에 TRUE를 반환합니다.



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