GD- und Image-Funktionen
PHP Manual

imagegetclip

(PHP 7 >= 7.2.0)

imagegetclipGet the clipping rectangle

Beschreibung

array imagegetclip ( resource $im )

imagegetclip() retrieves the current clipping rectangle, i.e. the area beyond which no pixels will be drawn.

Parameter-Liste

image

Eine von den verschiedenen Erzeugungsfunktionen wie imagecreatetruecolor() gelieferte Grafikressource.

Rückgabewerte

The function returns an indexed array with the coordinates of the clipping rectangle which has the following entries:

Beispiele

Beispiel #1 imagegetclip() example

Setting and retrieving the clipping rectangle.

<?php
$im 
imagecreate(100100);
imagesetclip($im10,1089,89);
print_r(imagegetclip($im));

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

Array
(
    [0] => 10
    [1] => 10
    [2] => 89
    [3] => 89
)

Siehe auch


GD- und Image-Funktionen
PHP Manual