php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #59640 add some operator constants
Submitted: 2011-02-25 06:20 UTC Modified: 2011-02-26 12:30 UTC
From: swen dot zanon at geoglis dot de Assigned:
Status: Closed Package: cairo (PECL)
PHP Version: 5.3.5 OS: open Suse 11.3
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: swen dot zanon at geoglis dot de
New email:
PHP Version: OS:

 

 [2011-02-25 06:20 UTC] swen dot zanon at geoglis dot de
Description:
------------
with cairo version 1.10 some additional constants can be used for setting composing-operator

Reproduce code:
---------------
#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 10, 0)
		REGISTER_CAIRO_OPERATOR_LONG_CONST("MULTIPLY", CAIRO_OPERATOR_MULTIPLY);
		REGISTER_CAIRO_OPERATOR_LONG_CONST("SCREEN", CAIRO_OPERATOR_SCREEN);
		REGISTER_CAIRO_OPERATOR_LONG_CONST("OVERLAY", CAIRO_OPERATOR_OVERLAY);
		REGISTER_CAIRO_OPERATOR_LONG_CONST("DARKEN", CAIRO_OPERATOR_DARKEN);
		REGISTER_CAIRO_OPERATOR_LONG_CONST("LIGHTEN", CAIRO_OPERATOR_LIGHTEN);
		REGISTER_CAIRO_OPERATOR_LONG_CONST("COLOR_DODGE", CAIRO_OPERATOR_COLOR_DODGE);
		REGISTER_CAIRO_OPERATOR_LONG_CONST("COLOR_BURN", CAIRO_OPERATOR_COLOR_BURN);
		REGISTER_CAIRO_OPERATOR_LONG_CONST("HARD_LIGHT", CAIRO_OPERATOR_HARD_LIGHT);
		REGISTER_CAIRO_OPERATOR_LONG_CONST("SOFT_LIGHT", CAIRO_OPERATOR_SOFT_LIGHT);
		REGISTER_CAIRO_OPERATOR_LONG_CONST("DIFFERENCE", CAIRO_OPERATOR_DIFFERENCE);
		REGISTER_CAIRO_OPERATOR_LONG_CONST("EXCLUSION", CAIRO_OPERATOR_EXCLUSION);
		REGISTER_CAIRO_OPERATOR_LONG_CONST("HSL_HUE", CAIRO_OPERATOR_HSL_HUE);
		REGISTER_CAIRO_OPERATOR_LONG_CONST("HSL_SATURATION", CAIRO_OPERATOR_HSL_SATURATION);
		REGISTER_CAIRO_OPERATOR_LONG_CONST("HSL_COLOR", CAIRO_OPERATOR_HSL_COLOR);
		REGISTER_CAIRO_OPERATOR_LONG_CONST("HSL_LUMINOSITY", CAIRO_OPERATOR_HSL_LUMINOSITY);
	#endif


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-02-25 06:23 UTC] swen dot zanon at geoglis dot de
add this in file cairo_context.c
 [2011-02-26 12:30 UTC] mgdm@php.net
This bug has been fixed in SVN.

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 Jan 05 04:01:29 2025 UTC