Req #52857 [Opn]: Access to gdImageSetClip() and gdImageGetClip()

From: Date: Sat, 23 Jul 2016 14:16:05 +0000
Subject: Req #52857 [Opn]: Access to gdImageSetClip() and gdImageGetClip()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202527@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=52857&edit=1 ID: 52857 Updated by: cmb@php.net Reported by: ljb9832 at pobox dot com Summary: Access to gdImageSetClip() and gdImageGetClip() Status: Open Type: Feature/Change Request Package: GD related Operating System: N/A PHP Version: 5.3.3 Block user comment: N Private report: N New Comment: I've submitted a respective PR Previous Comments: ------------------------------------------------------------------------ [2010-09-16 03:41:39] ljb9832 at pobox dot com Description: ------------ Since 2.0.12, libgd has supported a user-defined clipping rectangle using gdImageSetClip() and gdImageGetClip(). This clips all drawing operations to the specified area, and is a very useful capability. However, PHP does not expose these functions. Please consider adding a PHP function or functions to allow setting and getting the clipping boundaries. This could be two functions, imagesetclip($image, $x1, $y1, $x2, $y2) and imagegetclip($image), or a single function imageclip($image, [$x1, $y1, $x2, $y2]) which sets the clipping boundary if the arguments are provided, and returns the new or current boundary. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=52857&edit=1

« previous php.bugs (#202527) next »