【发布时间】:2011-05-12 20:14:38
【问题描述】:
我想设置从用户在屏幕上绘制的 Stroke 的不透明度。我可以设置要设置的笔划的绘图、大小、轮廓,但不能设置它的不透明度。
这是我的代码
StylusPointCollection spTemp = e.StylusDevice.GetStylusPoints(MyIP);
tempStroke.StylusPoints.Add(spTemp);
tempStroke.DrawingAttributes.Color = Colors.Red;
tempStroke.DrawingAttributes.OutlineColor = Colors.Black;
tempStroke.DrawingAttributes.Width = BrushSize.Value;
tempStroke.DrawingAttributes.Height = BrushSize.Value;
MyIP.Strokes.Add(tempStroke);
感谢任何帮助
简单代码
【问题讨论】:
标签: c# silverlight silverlight-4.0 opacity stroke