我想在任何角度使用类似于CreateHatchBrush函数的孵化器 [英] I want to use a thing like to CreateHatchBrush function for hatch in any angle

查看:56
本文介绍了我想在任何角度使用类似于CreateHatchBrush函数的孵化器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在任何角度使用类似于孵化的CreateHatchBrush函数。

看这个链接

在上行环节,我可以孵化45度和135度,垂直和horizental但我想要以任意角度孵化。

I want to use a thing like to CreateHatchBrush function for hatch in any angle.
look this link
in up link, I can to hatch in 45 degree and 135 degree and vertical and horizental but I want to hatch in any Arbitrary angle.

推荐答案

对于给定区域......



1.创建一个剪辑区域,描述应该应用阴影图案的位置。

2.将区域应用到窗口,例如。 SetWindowRgn。

3.使用填充笔和笔绘制填充图案。





请参阅.. 。



WIN32地区指南 [ ^ ]



剪辑区域可以防止您的阴影线绘制消除区域外的区域。
For a given area ...

1. Create a clipping region that describes where the hatch pattern should be applied.
2. Apply the region to the window eg. SetWindowRgn.
3. Draw your hatch pattern using a fill brush and pen.


See ...

Guide to WIN32 Regions[^]

The clip region prevents your hatch drawing from erasing areas outside the region.


这篇关于我想在任何角度使用类似于CreateHatchBrush函数的孵化器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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