请问如何绘制一个填充三角形? [英] Please how can one draw a filled triangle?

查看:181
本文介绍了请问如何绘制一个填充三角形?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将在一个应用程序上工作,我将需要在运行te绘制一个印章。我开始研究如何绘制它的偏差。我认为印章是一个填充的对象,由一个圆圈和它周围的各种三角形。但它绘制它似乎是如此令人生畏。我不知道绘制实心三角形的函数,并找出边界三角形的坐标是另一个挑战。请问任何想法?

I will be working on an app where I will need to draw a seal at run te.The am started to develop a migrain out of thinkinf of how to draw it.I decided that a seal is a filled object that consist of a circle and various triagles around its circumfrence.But drawing it seems so daunting.I don't know of a function that draws filled triangles and figuring out the coordinates of the bounding triangle is another challenge. Pls any ideas?

推荐答案

您可以使用 GDI 函数多边形 [ ^ ],传递三个顶点。它使用当前画笔填充多边形。
You might use the GDI function Polygon[^], passing the three vertices. It fills the polygon using the current brush.


这篇关于请问如何绘制一个填充三角形?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆