图像上的圆角
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了图像上的圆角相关的知识,希望对你有一定的参考价值。
<?php $image_file = $_GET['src']; $corner_radius = isset($_GET['radius']) ? $_GET['radius'] : 20; // The default corner radius is set to 20px $topleft = (isset($_GET['topleft']) and $_GET['topleft'] == "no") ? false : true; // Top-left rounded corner is shown by default $bottomleft = (isset($_GET['bottomleft']) and $_GET['bottomleft'] == "no") ? false : true; // Bottom-left rounded corner is shown by default $bottomright = (isset($_GET['bottomright']) and $_GET['bottomright'] == "no") ? false : true; // Bottom-right rounded corner is shown by default $topright = (isset($_GET['topright']) and $_GET['topright'] == "no") ? false : true; // Top-right rounded corner is shown by default $backcolor=$_GET['backcolor']; $endsize=$corner_radius; $startsize=$endsize*3-1; $arcsize=$startsize*2+1; if (($imagetype=='jpeg') or ($imagetype=='jpg')) { } else { if (($imagetype=='GIF') or ($imagetype=='gif')) { } else { } } // Top-left corner $startx=$size[0]*2-1; $starty=$size[1]*2-1; if ($topleft == true) { } // Bottom-left corner if ($bottomleft == true) { } // Bottom-right corner if ($bottomright == true) { } // Top-right corner if ($topright == true) { } // Output final image ?>
以上是关于图像上的圆角的主要内容,如果未能解决你的问题,请参考以下文章