aardio 文档
gdip.path 库模块帮助文档
gdip 成员列表 #
gdip.AddPathArc #
$.api("GdipAddPathArc","int(PTR path,float x,float y,float width,float height,float startAngle,float sweepAngle)")
gdip.AddPathBezier #
$.api("GdipAddPathBezier","int(PTR path,float x1,float y1,float x2,float y2,float x3,float y3,float x4,float y4)")
gdip.AddPathClosedCurve #
$.api("GdipAddPathClosedCurve","int(PTR path,struct Points,int count)")
gdip.AddPathCurve #
$.api("GdipAddPathCurve","int(PTR path,struct Points,int count)")
gdip.AddPathEllipse #
$.api("GdipAddPathEllipse","int(PTR path,float x,float y,float width,float height)")
gdip.AddPathLine #
$.api("GdipAddPathLine","int(PTR path,float x1,float y1,float x2,float y2)")
gdip.AddPathPath #
$.api("GdipAddPathPath","int(PTR path,pointer addingPath,int bConnect)")
gdip.AddPathPie #
$.api("GdipAddPathPie","int(PTR path,float x,float y,float width,float height,float startAngle,float sweepAngle)")
gdip.AddPathPolygon #
$.api("GdipAddPathPolygon","int(PTR path,struct Points,int count)")
gdip.AddPathRectangle #
$.api("GdipAddPathRectangle","int(PTR path,float x,float y,float width,float height)")
gdip.AddPathString #
$.api("GdipAddPathString","int(PTR path,string str,int Length,pointer family,int style,float emSize,struct& layoutRect,ptr strFmt)")
gdip.ClonePath #
$.api("GdipClonePath","int(PTR path,int& clonePath)")
gdip.ClosePathFigure #
$.api("GdipClosePathFigure","int(PTR path)")
gdip.ClosePathFigures #
$.api("GdipClosePathFigures","int(PTR path)")
gdip.CreatePath #
$.api("GdipCreatePath","int(int brushmode,pointer& Path)")
gdip.DeletePath #
$.api("GdipDeletePath","int(PTR path)")
gdip.ResetPath #
$.api("GdipResetPath","int(PTR path)")
gdip.StartPathFigure #
$.api("GdipStartPathFigure","int(PTR path)")
gdip.path() #
返回对象:gdiPathObject
gdip.path(_GdipFillMode) #
创建路径对象
gdip.path 成员列表 #
gdip.path.is() #
参数 @1 是否 gdip.bitmap 对象
gdiPathObject 成员列表 #
gdiPathObject.addArc() #
返回对象:gdiPathObject
gdiPathObject.addArc(x,y,width,height,startAngle,sweepAngle) #
添加椭圆弧
startAngle:起始角度,以度为单位从X轴顺时针测量
sweepAngle:startAngle 和弧线末尾之间的角度nn返回对象自身。
gdiPathObject.addBezier() #
返回对象:gdiPathObject
返回对象:gdiPathObject
gdiPathObject.addBezier(point1,point2,point3,point4) #
添加贝塞尔曲线。
参数 @point1 到 @point4 可指定为 ::POINTF 结构体或者包含 x,y 字段的普通表对象。
四个坐标点分别为:起始锚点,起始控制点,结束锚点,结束控制点。nn返回对象自身。
gdiPathObject.addBezier(x1,y1,x2,y2,x3,y3,x4,y4) #
添加贝塞尔曲线。
4个坐标点分别为:起始锚点,起始控制点,结束锚点,结束控制点nn返回对象自身。
gdiPathObject.addClosedCurve() #
返回对象:gdiPathObject
返回对象:gdiPathObject
gdiPathObject.addClosedCurve(points...) #
添加闭合曲线。
- 参数 @points 可指定曲线经过的多个坐标点(可指定一个数组或展开为多个参数)。
每个坐标点可以是 :: POINTF 创建的格式为 {float x, float y} 的结构体。
至少要指定三个坐标点才能形成曲线。nn返回对象自身。
gdiPathObject.addClosedCurve(x1,y1,y2,y2...) #
添加闭合曲线。
- 参数可指定曲线经过的多个坐标点(可指定一个数组或展开为多个参数)。
用成对的数值表示单个坐标点,例如 x1,y1 每表示第一个坐标点。
至少要指定三个坐标点才能形成曲线。nn返回对象自身。
gdiPathObject.addCurve() #
返回对象:gdiPathObject
返回对象:gdiPathObject
gdiPathObject.addCurve(points...) #
添加曲线。
- 参数 @points 可指定曲线经过的多个坐标点(可指定一个数组或展开为多个参数)。
每个坐标点可以是 :: POINTF 创建的格式为 {float x, float y} 的结构体。
至少要指定两个坐标点。nn返回对象自身。
gdiPathObject.addCurve(x1,y1,y2,y2...) #
添加曲线。
- 参数可指定曲线经过的多个坐标点(可指定一个数组或展开为多个参数)。
用成对的数值表示单个坐标点,例如 x1,y1 每表示第一个坐标点。
至少要指定两个坐标点。nn返回对象自身。
gdiPathObject.addEllipse() #
返回对象:gdiPathObject
返回对象:gdiPathObject
gdiPathObject.addEllipse(rect) #
添加椭圆。
参数 @rect 可指定 ::RECT 或 ::RECTF 结构体。nn返回对象自身。
gdiPathObject.addEllipse(x,y,width,height) #
添加椭圆。
参数 x,y 依次指定左、上位置,width,height 依次指定宽、高。nn返回对象自身。
gdiPathObject.addLine() #
返回对象:gdiPathObject
返回对象:gdiPathObject
返回对象:gdiPathObject
gdiPathObject.addLine(pioint1,point1) #
添加直线。
参数 @point1,@point2 指定开始与结束坐标,
坐标为包含 x,y 字段(数值)的任意表对象。nn返回对象自身。
gdiPathObject.addLine(x1,y1,x2,y2) #
添加直线nn返回对象自身。
添加直线。
参数 @x1,@y1,@x2,@y2 指定开始与结束坐标nn返回对象自身。
gdiPathObject.addPath() #
返回对象:gdiPathObject
gdiPathObject.addPath(路径对象) #
添加另一个路径对象。
参数 @1 指定 gdip.path 对象。
返回对象自身。
gdiPathObject.addPie() #
返回对象:gdiPathObject
gdiPathObject.addPie(x,y,width,height,startAngle,sweepAngle) #
添加一个扇形轮廓
startAngle:起始角度,以度为单位从X轴顺时针测量
sweepAngle:startAngle 和弧线末尾之间的角度nn返回对象自身。
gdiPathObject.addPolygon() #
返回对象:gdiPathObject
返回对象:gdiPathObject
gdiPathObject.addPolygon(points...) #
添加多边形。
- 参数 @points 可指定多边形经过的多个坐标点(可指定一个数组或展开为多个参数)。
每个坐标点可以是 :: POINTF 创建的格式为 {float x, float y} 的结构体。
至少要指定两个坐标点nn返回对象自身。
gdiPathObject.addPolygon(x1,y1,y2,y2...) #
添加多边形。
- 参数可指定多边形经过的多个坐标点(可指定一个数组或展开为多个参数)。
用成对的数值表示单个坐标点,例如 x1,y1 每表示第一个坐标点。
至少要指定两个坐标点nn返回对象自身。
gdiPathObject.addPolyline #
绘制折线(多段线)nn返回对象自身。
gdiPathObject.addPolyline() #
返回对象:gdiPathObject
返回对象:gdiPathObject
返回对象:gdiPathObject
gdiPathObject.addPolyline(points...) #
- 参数 @points 可指定多边形经过的多个坐标点(可指定一个数组或展开为多个参数)。
每个坐标点可以是 :: POINTF 创建的格式为 {float x, float y} 的结构体。
至少要指定两个坐标点nn返回对象自身。
gdiPathObject.addPolyline(x1,y1,y2,y2...) #
- 参数可指定多边形经过的多个坐标点(可指定一个数组或展开为多个参数)。
用成对的数值表示单个坐标点,例如 x1,y1 每表示第一个坐标点。
至少要指定两个坐标点nn返回对象自身。
gdiPathObject.addRectangle() #
返回对象:gdiPathObject
返回对象:gdiPathObject
gdiPathObject.addRectangle(rect) #
添加矩形。
参数 @rect 可指定 ::RECT 或 ::RECTF 结构体。nn返回对象自身。
gdiPathObject.addRectangle(x,y,width,height) #
添加矩形。
参数 x,y 依次指定左、上位置,width,height 依次指定宽、高。nn返回对象自身。
gdiPathObject.addRoundRect() #
返回对象:gdiPathObject
返回对象:gdiPathObject
gdiPathObject.addRoundRect(rect,radius) #
添加圆角矩形。
- 参数 @rect 可指定 ::RECT 或 ::RECTF 结构体。
- 参数 @radius 指定圆角大小。
也可以使用四个参数分别指定四个方向的员角大小。
参数自左上角开始顺时针为序:左上,右上,右下,左下nn返回对象自身。
gdiPathObject.addRoundRect(x,y,width,height,radius) #
添加圆角矩形。
- 参数 x,y 指定左上角坐标,width,height 指定宽高。
- 参数 @radius 指定圆角大小。nn返回对象自身。
gdiPathObject.addString() #
返回对象:gdiPathObject
gdiPathObject.addString(str,family,style,emSize,rclayout,strformat ) #
添加字符串 nn返回对象自身。
gdiPathObject.closeAllFigure() #
闭合所有图形开始新图。
返回对象自身。
返回对象:gdiPathObject
gdiPathObject.closeFigure() #
闭合当前图形开始新图。
返回对象自身。
返回对象:gdiPathObject
gdiPathObject.delete() #
释放路径对象
gdiPathObject.draw() #
返回对象:gdiPathObject
gdiPathObject.draw(graphics,pen) #
在参数 @graphics 指定的画板上使用画笔 @pen 绘图。
- @graphics 指定 gdip.graphics 对象。
- @pen 指定 gdip.pen 对象。
返回对象自身。
gdiPathObject.fill() #
返回对象:gdiPathObject
gdiPathObject.fill(graphics,brush) #
在参数 @graphics 指定的画板上使用画刷 @brush 填充。
- @graphics 指定 gdip.graphics 对象。
- @brush 指定 gdip.solidBrush 等画刷对象
返回对象自身。
gdiPathObject.pointCount #
路径对象添加的数据点总数
gdiPathObject.reset() #
重置为空路径。
返回对象自身。
返回对象:gdiPathObject
gdiPathObject.startFigure() #
不闭合开始新图形。
返回对象自身。
返回对象:gdiPathObject
Markdown 格式