bounds
gdImagePolygon(imagePtr, {{x1,y1}, {x2,y2}, ...{xn,yn}}, color_index)
Draws a polygon, using color color_index
{x1,y1}, {x2,y2}, ...{xn,yn} - points of polygon.
gdImageFilledPolygon(imagePtr, {{x1,y1}, {x2,y2}, ...{xn,yn}}, color_index)
Draws a filled polygon, using color color_index
gdImageSetBrush(imagePtr, imagePtrBrush)
Set image brush.
gdImageSetTile(imagePtr, imagePtrTile)
Set image tile (it may bu using for filling functions)
gdImageSetStYle(imagePtr, colorsArray)
Set the style a drawing lines.
see gdinfo.ch
GDSTYLE_STYLED
GDSTYLE_BRUSHED
GDSTYLE_STYLEDBRUSHED
GDSTYLE_TILED
GDSTYLE_TRANSPARENT
gdImageChar(imagePtr, str, x, y, color_index, fontPtr)
gdImageCharUP(imagePtr, str, x, y, color_index, fontPtr)
gdImageString(imagePtr, str, x, y, color_index, fontPtr)
gdImageStringUP(imagePtr, str, x, y, color_index, fontPtr)
Draws a character or string str using color color_index and
font fontPtr(see gdinfo.ch)
GDFONT_GIANT
GDFONT_LARGE
GDFONT_NEDIUMBOLD
GDFONT_SMALL
GDFONT_TINY
Functions gdImageCharUp() É gdImageStringUp() draws symbol or string
rotateted on 270
gdImageCharRotate(imagePtr, str, x, y, color_index, fontPtr, angle)
gdImageStringRotate(imagePtr, str, x, y, color_index, fontPtr, angle)
Draws symbol or string rotateted an angel angel, using color color_index
and font fontPtr
gdImageCharVector(imagePtr, str, x, y, angle, color_index, fontSize)
gdImageStringVector(imagePtr, str, x, y, angle, color_index, fontSize)
Draws symbol or string rotateted an angel angel in vector graphics, using color color_index
and size fontSize
gdImageSector(imagePtr, cx, cy, width, high, startangle, endangle, color_index)
gdImageFilledSector(imagePtr, cx, cy, width, high, startangle, endangle, color_index)
Draws a sector and filled sector, using color color_index.
cx the x coordinate
cy the y coordinate
width the width of the bounding rectangle.
height the height of the bounding rectangle.
startangle the start angle of the sector
endangle the end angle of the sector
gdImageTruncSector(imagePtr, cx, cy, width, high, widthtr, hightr, startangle, endangle, color_index)
gdImageFilledTruncSector(imagePtr, cx, cy, width, high, widthtr, hightr, startangle, endangle, color_index)
Draws a truncated sector and filled truncated sector, using color color_index.
cx the x coordinate
cy the y coordinate
width the external width of the bounding rectangle.
height the external height of the bounding rectangle.
widthtr the internal width of the bounding rectangle.
heighttr the internal height of the bounding rectangle.
startangle the start angle of the sector
endangle the end angle of the sector
Color index
Color index:
- color_index
For example:
#include
.....
image=gdImageCreate(100, 100)
.....
color=gdColorCreate(brush, 255, 255)
gdImageLine(image, 10, 10, 90, 90, color)
....
- imageBrush
For example:
#include
.....
image=gdImageCreate(100, 100)
.....
brush=gdImageCreate(3, 3)
gdImageFill(brush, 0, 0, gdColorCreate(brush, 255, 255))
gdImageSetBrush(image, brush)
gdImageLine(image, 10, 10, 90, 90, GDSTYLE_BRUSHED)
....
- imageTile
For example:
#include
.....
image=gdImageCreate(100, 100)
.....
tile=gdImageCreateFromFile("tile.png", GDFILE_PNG)
gdImageSetTile(image, tile)
gdImageFill(image, 0, 0, GDSTYLE_TILED)
....
CLIP home page
© à.èÎÙËÉÎ, uri@itk.ru, 2000