PHP 8.1.0 RC 4 available for testing


(PECL ps >= 1.1.0)

ps_setmiterlimitSets the miter limit


ps_setmiterlimit(resource $psdoc, float $value): bool

If two lines join in a small angle and the line join is set to PS_LINEJOIN_MITER, then the resulting spike will be very long. The miter limit is the maximum ratio of the miter length (the length of the spike) and the line width.

Список параметров


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


The maximum ratio between the miter length and the line width. Larger values (> 10) will result in very long spikes when two lines meet in a small angle. Keep the default unless you know what you are doing.

Возвращаемые значения

Возвращает true в случае успешного выполнения или false в случае возникновения ошибки.

Смотрите также

  • ps_setlinecap() - Устанавливает внешний вид окончания линии
  • ps_setlinejoin() - Устанавливает способ соединения линий
  • ps_setlinewidth() - Устанавливает ширину линии

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top