我想设置从用户在屏幕上绘制的 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);
任何帮助表示赞赏
简单代码