Fills an arc centered at (x,y) with radius rad covering the range of angles in degrees from d1 to d2, with the color.
Fills an arc centered at (x,y) with radius rad covering the range of angles in degrees from d1 to d2, with the fill object.
Anti-alias fills an arc centered at (x,y) with radius rad covering the range of angles in degrees from d1 to d2, with the color.
Anti-alias fills an arc centered at (x,y) with radius rad covering the range of angles in degrees from d1 to d2, with the fill object.
Anti-alias fills a circle centered at (x,y) for radius rad with color.
Anti-alias fills a circle centered at (x,y) for radius rad with fill.
Draw a circle outline centered at (x,y) with radius r, non-anti-aliased.
Parameters:
(x, y) - the center of the circle
r - the radius of the circle in pixels, must be non-negative
Returns non-zero on success.
Implementation:
Convert an angle in degrees into an angle measure we can generate simply from the numbers we have when drawing the circle.
Draw an arc outline centered at (x,y) with radius r, non-anti-aliased over the angle range d1 through d2 degrees.
d1, d2 - the range of angles to draw the arc over, in degrees.
Draw a circle outline centered at (x,y) with radius r, anti-aliased.
(xc, yc) - the center of the circle
col - an i_color for the color to draw in.
Draw a circle arc outline centered at (x,y) with radius r, from angle d1 degrees through angle d2 degrees, anti-aliased.
d1, d2 - the range of angle in degrees to draw the arc through. If d2-d1 >= 360 a full circle is drawn.
Outlines the box from (x1,y1) to (x2,y2) inclusive with color.
Fills the box from (x1,y1) to (x2,y2) inclusive with color.
Fills the box from (x1,y1) to (x2,y2) inclusive with a floating point color.
Fills the box from (x1,y1) to (x2,y2) inclusive with fill.
im
x1
y1
x2
y2
color
endp
Draw a line to image using Bresenham's line drawing algorithm
im - image to draw to x1 - starting x coordinate y1 - starting x coordinate x2 - starting x coordinate y2 - starting x coordinate color - color to write to image endp - endpoint flag (boolean)
Anti-alias draws a line from (x1,y1) to (x2, y2) in color.
The point (x2, y2) is drawn only if endp is set.
seedx
seedy
Flood fills the 4-connected region starting from the point (seedx, seedy) with color.
Returns false if (seedx, seedy) are outside the image.
fill
Flood fills the 4-connected region starting from the point (seedx, seedy) with fill.
border
Flood fills the 4-connected region starting from the point (seedx, seedy) with color, fill stops when the fill reaches a pixels with color border.
Flood fills the 4-connected region starting from the point (seedx, seedy) with fill, the fill stops when it reaches pixels of color border.
21 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
Unknown directive: =category
Unknown directive: =synopsis
To install Imager, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Imager
CPAN shell
perl -MCPAN -e shell install Imager
For more information on module installation, please visit the detailed CPAN module installation guide.