TouchVG framework
GiGraphics
_drawPolygon
_xf
beginPaint
beginShape
calcPenColor
calcPenWidth
copy
drawArc
drawArc3P
drawArrayHead
drawBeeline
drawBeziers
drawBeziers
drawBSplines
drawCircle
drawEllipse
drawEllipse
drawHandle
drawHermiteSplines
drawLine
drawLines
drawPath
drawPath_
drawPathWithArrayHead
drawPie
drawPolygon
drawQuadSplines
drawRayline
drawRect
drawRoundRect
drawTextAt
drawTextAt
endPaint
endShape
fromHandle
getBkColor
getCanvas
getClipBox
getClipModel
getClipWorld
GiGraphics
GiGraphics
GiGraphics
isDrawing
isGrayMode
isPrint
isStopping
m_impl
operator=
rawBeginPath
rawBeziers
rawBezierTo
rawClosePath
rawEllipse
rawEndPath
rawImage
rawLine
rawLines
rawLineTo
rawMoveTo
rawPolygon
rawQuadTo
rawRect
rawText
setBkColor
setBrush
setClipBox
setClipWorld
setGrayMode
setMaxPenWidth
setPen
setPenWidthFactor
setPhaseEnabled
stopDrawing
toHandle
xf
~GiGraphics
◆
drawPolygon()
bool GiGraphics::drawPolygon
(
const
GiContext
*
ctx
,
int
count
,
const
Point2d
*
points
,
bool
modelUnit
=
true
)
绘制并填充多边形,模型坐标或世界坐标
通过绘制从最后一个顶点到第一个顶点的线段而自动闭合
参数
ctx
绘图参数,为NULL时取为上一个绘图参数
count
点的个数,至少为2,不需要首末两点重合
points
顶点数组,点数为count
modelUnit
指定的坐标尺寸是模型坐标(true)还是世界坐标(false)
返回
是否显示成功。失败原因为参数错误或超出剪裁区域
函数调用图:
这是这个函数的调用关系图:
通用矢量图形框架
, 版权所有 (C)
张云贵
2004-2017,BSD 开源许可证