如何勾勒出一个地区? [英] How to outline a region?

查看:72
本文介绍了如何勾勒出一个地区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想我可以手动概述一个区域,但有没有现成的方法?

我需要一个现成的方法。

如果我们有这样的方法,我可以用它来按颜色边界勾勒出一张图片?



I think i can outline a region manually, but is there a ready way?
I need a ready method.
If we have such a method, can i use that to outline a picture by color boundaries?

private void Draw(object sender, System.Windows.Forms.PaintEventArgs e)
{
    GraphicsPath path = new GraphicsPath();

    path.AddRectangle(new Rectangle(50, 50, 100, 20));
    path.AddEllipse(new Rectangle(50, 50, 50, 50));

    Region reg = new Region(path);
}

推荐答案

.NET Framework中没有自动勾画图像的方法为你。
There is no method in the .NET Framework that will "automatically" outline an image for you.


这篇关于如何勾勒出一个地区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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