Urmila Samariya has Published 135 Articles

How to set the alpha blending flag to use layering effects using imaglayereffect() function in PHP?

Urmila Samariya

Urmila Samariya

Updated on 09-Aug-2021 12:30:10

139 Views

imagelayereffect() is an inbuilt function in PHP that is used to set the alpha blending flag to use layering effects. It returns True on success or False on failure.Syntaxbool imagelayereffect($image, $effect)Parametersimagelayereffect() takes two different parameters: $image and $effect.$image − This parameter is returned by the image creation function imagecreatetruecolor(). It ... Read More

How to ensure an image is a truecolor image using the imageistruecolor() function in PHP?

Urmila Samariya

Urmila Samariya

Updated on 09-Aug-2021 12:26:58

228 Views

imageistruecolor() is an inbuilt function in PHP that is used to check if a given image is a true-color image or not. In a true-color image, each pixel is specified by the RGB (Red, Green, and Blue) color values.Syntaxbool imageistruecolor(resource $image)Parametersimageistruecolor() takes a single parameter, $image. It holds the image.Return ... Read More

How to get the clipping rectangle using imagegetclip() function in PHP?

Urmila Samariya

Urmila Samariya

Updated on 09-Aug-2021 12:23:26

113 Views

imagegetclip() is an inbuilt PHP function that is used to get the clipping rectangle. It is used to retrieve the current clipping rectangle, the area beyond which no pixels will be drawn.Syntaxarray imagegetclip(resource $image)Parametersimagegetclip() takes only one parameter, $image. It holds the image resource returned by one of the image ... Read More

How to get the pixel width of a character in the specified font using the imagefontwidth() function in PHP?

Urmila Samariya

Urmila Samariya

Updated on 09-Aug-2021 12:20:34

583 Views

imagefontwidth() is an inbuilt function in PHP that is used to get the pixel width of a character in the specified font.Syntaxint imagefontwidth(int $font)Parametersimagefontwidth() takes only one parameter, $font. It holds the font value. The $font values can be 1, 2, 3, 4, and 5 for the built-in fonts or ... Read More

How to get the pixel height of a character in the specified font using the imagefontheight() function in PHP?

Urmila Samariya

Urmila Samariya

Updated on 09-Aug-2021 12:17:14

294 Views

imagefontheight() is an inbuilt function in PHP that is used to get the pixel height of a character in the specified font.Syntaxint imagefontheight(int $font)Parametersimagefontheight() takes one parameter, $font. It holds the font value. The $font values can be 1, 2, 3, 4, and 5 for the built-in fonts or it ... Read More

How to apply a filter to an image using imagefilter() function in PHP?

Urmila Samariya

Urmila Samariya

Updated on 09-Aug-2021 12:02:58

910 Views

imagefilter() is an inbuilt function in PHP that is used to apply a given filter to an image.Syntaxbool imagefilter(resource $image, int $filtertype, int $arg1, int $arg2, int $arg3, int $arg4)Parametersimagefilter() takes six different parameters − $image, int $filtertype, int $arg1, int $arg2, int $arg3, int $arg4.$image − It holds the ... Read More

Flood fill to specific color in PHP using imagefilltoborder() (GD) function.

Urmila Samariya

Urmila Samariya

Updated on 09-Aug-2021 11:56:33

375 Views

imagefilltoborder() is an inbuilt function in PHP that is used to perform flood fill with a specific color, whose border color is defined by the border. The starting point for the fill is (x, y) or top left is (0, 0) and the region is filled with the color.Syntaxbool imagefilltoborder(resource ... Read More

How to draw a filled polygon using an imagefilledpolygon() function in PHP?

Urmila Samariya

Urmila Samariya

Updated on 09-Aug-2021 11:51:48

412 Views

imagefilledpolygon() is an inbuilt PHP function that is used to draw a filled polygon.Syntaxbool imagefilledpolygon($image, $points, $num_points, $color)Parametersimagefilledpolygon() takes four different parameters − $image, $points, $num_points, and $color.$image − Creates a blank image in a given size using the imagecreatetruecolor() function.$points − Holds the sequential vertices of the polygon.$num_points − ... Read More

How to draw a partial arc and fill it using imagefilledarc() function in PHP?

Urmila Samariya

Urmila Samariya

Updated on 09-Aug-2021 11:46:55

388 Views

imagefilledarc() is an inbuilt function in PHP that is used to draw a partial arc and fill it.Syntaxbool imagefilledarc($image, $cx, $cy, $width, $height, $start, $end, $color, $style)Parametersimagefilledarc() takes nine parameters: $image, $cx, $cy, $width, $height, $start, $end, $color, and $style.$image − It is returned by the image creation function imagecreatetruecolor(). ... Read More

How to draw an ellipse using imageellipse() function in PHP?

Urmila Samariya

Urmila Samariya

Updated on 09-Aug-2021 11:43:12

762 Views

imageellipse() is an inbuilt function in PHP that is used to draw an ellipse. It returns True on success and False on failure.SyntaxBool imageellipse($image, $cx, $cy, $width, $height, $color)Parametersimageellipse() takes six different paramters: $image, $cx, $cy, $width, $height, $color.$image − Creates the size of the image. It is returned by ... Read More

Advertisements