PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, October 10, 2022

[FIXED] How to remove ImageFilledPolygon php jagged edges?

 October 10, 2022     gd, php     No comments   

Issue

I have a function that fills a part of the bitmap created by imagecreatetruecolor($h,$w) ; But the result is the drawing looking jagged and not smooth which sucks. I tried the php antialias(resource,boolean) function and there is no difference. I can only guess it isn't supported. Any gurus know of any neat trick to make the edges smooth? If you look at the image http://www.php.net/manual/en/images/21009b70229598c6a80eef8b45bf282b-imagefilledpolygon.png from the php manual, that is exactly what I mean. Any ideas how to remove it (the jagged edges)? Thanks a lot in advanced.


Solution

To make the edges smooth, you can try the resizeimage function and add a blur parameter.



Answered By - Lews Therin
Answer Checked By - Timothy Miller (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing