update : 2015.11.03
php.shukuma.com검색:
|
ps_rotate(PECL ps >= 1.1.0) ps_rotate — Sets rotation factor 설명
bool ps_rotate
( resource
$psdoc
, float $rot
)Sets the rotation of the coordinate system. 인수
반환값
성공 시 예제
Example #1 Rotation of the coordinate system
<?php The above example illustrates a very common way of rotating a graphic (in this case just a rectangle) by simply rotating the coordinate system. Since the graphic's coordinate system assumes (0,0) to be the origin, the page coordinate system is also translated to place the graphics not on the edge of the page. Pay attention to the order of ps_translate() and ps_rotate(). In the above case the rectancle is rotated around the point (100, 100) in the untranslated coordinate system. Switching the two statements has a completely different result. In order to output the following text at the original position, all modifications of the coordinate system are encapsulated in ps_save() and ps_restore(). |