php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #61221
Patch imagegammacorrect-alpha revision 2015-06-06 00:45 UTC by cmb@php.net
Patch gd.patch revision 2012-03-01 14:57 UTC by efbiaiinzinz at hotmail dot com

Patch gd.patch for GD related Bug #61221

Patch version 2012-03-01 14:57 UTC

Return to Bug #61221 | Download this patch
Patch Revisions:

Developer: efbiaiinzinz@hotmail.com

3181c3181
< 					gdTrueColor(
---
> 					gdTrueColorAlpha(
3184c3184,3185
< 						(int) ((pow((pow((gdTrueColorGetBlue(c)  / 255.0), input)), 1.0 / output) * 255) + .5)
---
> 						(int) ((pow((pow((gdTrueColorGetBlue(c)  / 255.0), input)), 1.0 / output) * 255) + .5),
> 						(int) ((pow((pow((gdTrueColorGetAlpha(c)  / 127.0), input)), 1.0 / output) * 127) + .5)
3195a3197
> 		im->alpha[i]  = (int)((pow((pow((im->alpha[i]  / 127.0), input)), 1.0 / output) * 127) + .5);
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 20:01:29 2024 UTC