Search Results
imagesetbrush (PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8) imagesetbrush — Set the brush image for line drawing
Feb 14, 2020 · The imagesetbrush () function is an inbuilt function in PHP which is used to set the brush image for line drawing. Line drawing is done using functions like imageline () or imagepolygon ().
imagesetbrush () sets the brush image to be used by all line drawing functions (such as imageline () and imagepolygon ()) when drawing with the special colors IMG_COLOR_BRUSHED or IMG_COLOR_STYLEDBRUSHED.
imagesetbrush () remplace la brosse courante pour le dessin des lignes par brush. Cette brosse sera alors utilisée avec des fonctions comme imageline () ou imagepolygon () et avec les couleurs spéciales IMG_COLOR_BRUSHED ou IMG_COLOR_STYLEDBRUSHED.
gd_info getimagesize getimagesizefromstring image_type_to_extension image_type_to_mime_type imageaffine imageaffinematrixconcat imageaffinematrixget imagealphablending imageantialias imagearc imageavif imagebmp imagechar imagecharup imagecolorallocate imagecolorallocatealpha imagecolorat imagecolorclosest imagecolorclosestalpha ...
imagesetbrush sets the brush image to be used by all line drawing functions (such as imageline and imagepolygon) when drawing with the special colors IMG_COLOR_BRUSHED or IMG_COLOR_STYLEDBRUSHED.
Free PHP tutorials by example The new line in there is the call to imagesetbrush () - note that it takes the image you're changing as the first parameter, and the brush to use as the second. To actually use the brush that has been set, we need to pass the special constant IMG_COLOR_BRUSHED as the colour parameter for our shape.
