Urmila Samariya has Published 135 Articles

How to set the image thickness for line drawing using imgesetthickness() function in PHP?

Urmila Samariya

Urmila Samariya

Updated on 09-Aug-2021 13:21:29

346 Views

imagesetthickness() is an inbuilt function in PHP that is used to set the thickness for line drawing.Syntaxbool imagesetthickness($image, $thickness)Parametersimagesetthickness() accepts two parameters− $image and $thickness.$image − This parameter is returned by an image creation function such as imagecreatetruecolor(). It is used to create the size of an image.$thickness − This ... Read More

How to draw a string vertically using imagestringup() function in PHP?

Urmila Samariya

Urmila Samariya

Updated on 09-Aug-2021 13:16:36

404 Views

imagestringup() is an inbuilt function in PHP that is used to draw an image vertically.Syntaxbool imagestringup ($image, $font, $x, $y, $string, $color)Parametersimagestring() accepts six parameters: $image, $font, $x, $y, $string, and $color.$image − The $image parameter uses imagecreatetruecolor() function to create a blank image of given size.$font − The $font ... Read More

How to draw a text string image horizontally by using imagestring() function in PHP?

Urmila Samariya

Urmila Samariya

Updated on 09-Aug-2021 13:13:31

912 Views

imagestring() is an inbuilt function in PHP that is used to draw a string horizontally.Syntaxbool imagestring($image, $font, $x, $y, $string, $color)Parametersimagestring() accepts six different parameters − $image, $font, $x, $y, $string, and $color.$image − The $image parameter uses imagecreatetruecolor() function to create a blank image in the given size.$font − ... Read More

How to set the tile image for filling using imagesettile() function in PHP?

Urmila Samariya

Urmila Samariya

Updated on 09-Aug-2021 13:10:16

384 Views

imagesettle() is an inbuilt function in PHP that is used to set the tile image for filling. It sets the image to be used by all-region filling functions like imagefill() and imagefilledpolygon() when filling with a special color IMG_COLOR_TILED.We can say that a tile is an image that is used ... Read More

How to set the style for line drawing using imagesetstyle() function in PHP?

Urmila Samariya

Urmila Samariya

Updated on 09-Aug-2021 13:06:26

193 Views

imagesetstyle() is an inbuilt function in PHP that is used to set the style for line drawing. It can be used by all line drawing functions like imagepolygon or imageline.Syntaxbool imagesetstyle(resource $image, array $style)Parametersimagesetstyle() takes two parameters: $image and $style.$image − Specifies the image resource to work on.$style − Specifies ... Read More

How to rotate an image with a given angle using imagerotate() function in PHP?

Urmila Samariya

Urmila Samariya

Updated on 09-Aug-2021 13:02:24

1K+ Views

imagerotate() is an inbuilt function in PHP that is used to rotate an image with a given angle in degrees.Syntaxresource imagerotate($image, $angle, $bgd_color, $ignore_transparent = 0)Parametersimagerotate() accepts four parameters, $image, $angle, $bgd_color, and $ignore_transparent.$image − The $image parameter returned by the imagecreatetruecolor() function. It is used to create the size ... Read More

How to get or set the resolution of an image using imageresolution() function in PHP?

Urmila Samariya

Urmila Samariya

Updated on 09-Aug-2021 12:54:22

1K+ Views

imageresoulution() is an inbuilt function in PHP that is used to get or set the resolution of an image in dots per inch. If no optional parameters are given, then the current resolution is returned as an indexed array. If one of the optional parameters is given, then it will ... Read More

How to copy the palette from one image to another using imagepalettecopy() function in PHP?

Urmila Samariya

Urmila Samariya

Updated on 09-Aug-2021 12:50:53

136 Views

imagepalettecopy() is an inbuilt PHP function that is used to copy the palette from one image to another. This function copies the palette from the source image to the destination image.Syntaxvoid imagepalettecopy(resource $destination, resource $source)Parametersimagepalettecopy() accepts two parameters − $source and $destination.$destination − Specifies the destination image resource.$source − Specifies ... Read More

How to draw an open polygon using the imageopenpolygon() function n PHP?

Urmila Samariya

Urmila Samariya

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

389 Views

imageopenpolygon() is an inbuilt function in PHP that is used to draw an open polygon on a given image.Syntaxbool imageopenpolygon(resource $image, array $points, int $num_points, int $color)Parametersimageopenpolygon() takes four different parameters: $image, $points, $num_points and$color. $image − Specifies the image resource to work on.$image − Specifies the image resource to ... Read More

How to draw a line using imageline() function in PHP?

Urmila Samariya

Urmila Samariya

Updated on 09-Aug-2021 12:38:35

2K+ Views

imageline() is an inbuilt function in PHP that is used to draw a line between two given points.Syntaxbool imageline(resource $image, int $x1, int $y1, int $x2, int $y2, int $color)Parametersimageline() takes six different parameters: $image, $x1, $y1, $x2, $y2 and $color.$image − Specifies the image resource to work on.$x1 − ... Read More

Previous 1 ... 7 8 9 10 11 ... 14 Next
Advertisements