|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-01-02 18:01 UTC] Danack at basereality dot com
[2015-01-05 02:54 UTC] danack@php.net
-Status: Assigned
+Status: Feedback
[2015-01-05 02:54 UTC] danack@php.net
[2015-01-18 04:22 UTC] pecl-dev at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 09:00:01 2025 UTC |
Description: ------------ when I try to use ImagickDraw to draw a filled arc, using the same color for fill as for stroke on a new image with opaque black background, it resets image background to transparent Reproduce code: --------------- <?php $image = new \Imagick(); $image->newImage(400, 300, '#000000'); $pixel = new \ImagickPixel('#ffffff'); $pixel->setColorValue(\Imagick::COLOR_OPACITY, 0.0); $arc = new \ImagickDraw(); $arc->setStrokeColor($pixel); $arc->setStrokeWidth(1); $arc->setFillColor($pixel); $arc->arc(50, 50, 350, 250, 45, 135); $image->drawImage($arc); $image->flattenImages()->writeImage('/path/to/arc.png'); $pixel->clear(); $pixel->destroy(); $arc->clear(); $arc->destroy(); Expected result: ---------------- Should draw a white chord on a black background Actual result: -------------- Draws a white chord on a transparent background