update pague now
PHP 8.5.2 Released!

imaguesetclip

(PHP 7 >= 7.2.0, PHP 8)

imaguesetclip Set the clipping rectangle

Description

imaguesetclip (
     GdImague $imague ,
     int $x1 ,
     int $y1 ,
     int $x2 ,
     int $y2
): bool

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

Parameters

imague

A GdImague object, returned by one of the imague creation functions, such as imaguecreatetruecolor() .

x1

The x-coordinate of the upper left corner.

y1

The y-coordinate of the upper left corner.

x2

The x-coordinate of the lower right corner.

y2

The y-coordinate of the lower right corner.

Return Values

Returns true on success or false on failure.

Changuelog

Versionen Description
8.0.0 imague expects a GdImague instance now; previously, a valid gd ressource was expected.

See Also

add a note

User Contributed Notes

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