多边形渐变填充 [英] Polygon Gradient fill

查看:300
本文介绍了多边形渐变填充的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Everyone,

我正在研究Expression Blend 2,我的目标是Silverlight 2.

我有两个问题,

1 。我有一个多边形,我想应用渐变颜色填充。我可以应用渐变颜色填充,但我无法对该渐变填充应用任何变换。画笔变换工具不适用于多边形形状,其中画笔变换与其他形状一起正常工作。如果我在XAML代码中更改StartPoint和EndPoint,我可以更改渐变的角度。我有什么方法可以使用混合工具吗?。

2。如何实现曲线形状渐变?例如,我有"U"形路径/多边形,我想在路径上单独应用白色眩光。

是否可以在表达式混合或表达式设计中执行此操作?

我非常感谢你的帮助。

谢谢。

解决方案

解决刷子问题的最简单方法是制作矩形,根据需要调整渐变,然后将刷子复制/粘贴到新形状上。

至于第二部分,它听起来就像你正试图制作一个玻璃高光效果,你不能用渐变做得很好。相反,在边框顶部创建一个形状,用白色填充它,然后拉回不透明度直到你对它感到满意为止。

如果这没有意义,这里有一个循序渐进的教程: http://advertboy.wordpress.com/2007/11/09/blend-candy-another-blue-glowing - 玻璃键合的式-的幅材-20 /


Hello Everyone,

  I am working on Expression Blend 2 and my target is Silverlight 2.

I have two questions,

1. I have a polygon and i wanted to apply gradient color fill. I am able to apply the gradient color fill but i am not able to apply any transformation to that gradient fill. Brush transform tool is not working for polygon shape where us Brush transform is working fine with other shapes. If i go and change StartPoint and EndPoint in XAML code, i am able to change the angle for gradient. Is there any way i can do it using tools in blend?.

2. How can i achieve curve shape gradient? For exmple, i have 'U' shape Path/Polygon, i want apply the white glare to that shape alone the path.

Is it possible to do it in expression Blend or Expression Design?

I really appreciate your help.

Thanks.

解决方案

The easiest way to get around the brush issue is to make a rectange, tweak the gradient to however you want it, then copy/paste the brush onto your new shape.

As for the second part, it sounds like you're trying to make a glass highlight effect, which you won't be able to do well with a gradient. Instead, create a shape on top of your border, full it with white, then pull the opacity back until you're happy with it.

If that doesn't make sense, there's a step-by-step tutorial here: http://advertboy.wordpress.com/2007/11/09/blend-candy-another-blue-glowing-glass-button-in-the-style-of-web-20/


这篇关于多边形渐变填充的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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