[英]How to draw “pouring” effect in gdi+?
See the pic: 看图片:
I know gradients, but in this pic, the gradient border is irregular, just like pouring water. 我知道渐变,但是在这张照片中,渐变边界是不规则的,就像倒水一样。
I think you're referring to a "gradient" -- there is a LinearGradientBrush
class that you can use for this purpose; 我认为您指的是“渐变”-有一个
LinearGradientBrush
类可用于此目的。 you can also find an example on MSDN: Creating a Linear Gradient . 您还可以在MSDN上找到一个示例: 创建线性渐变 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.