php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #57670 ImagickPixel constructor to take color values
Submitted: 2007-05-15 08:53 UTC Modified: 2007-05-15 16:29 UTC
From: tf at oopsilon dot com Assigned:
Status: Closed Package: imagick (PECL)
PHP Version: 5.1.6 OS: Linux 2.6.17 (Ubuntu)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tf at oopsilon dot com
New email:
PHP Version: OS:

 

 [2007-05-15 08:53 UTC] tf at oopsilon dot com
Description:
------------
At present, it's impossible to generate an image of one uniform color within one operation. Instead, a new ImagickPixel must be created, on which setColor is used, and which is then passed to Imagick::newImage.

If instead ImagickPixel's constructor was able to take a color value as a parameter, this would greatly simplify the use of ImagickPixel. An example usage is given below.

Reproduce code:
---------------
$i = new Imagick();
$i->newImage(420, 300, new ImagickPixel('blue'));


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-05-15 16:29 UTC] mkoppanen@php.net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun May 11 05:01:28 2025 UTC