本文整理汇总了C#中Android.Graphics.Paint.SetMaskFilter方法的典型用法代码示例。如果您正苦于以下问题:C# Paint.SetMaskFilter方法的具体用法?C# Paint.SetMaskFilter怎么用?C# Paint.SetMaskFilter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Android.Graphics.Paint
的用法示例。
在下文中一共展示了Paint.SetMaskFilter方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Initialize
void Initialize ()
{
window_manager = (Context.GetSystemService (Context.WindowService)).JavaCast<IWindowManager> ();
//set background paint properties
background_paint = new Paint ();
background_paint.SetStyle (Paint.Style.Fill);
background_paint.Dither = true;
background_paint.AntiAlias = true;
image_paint = new Paint ();
//set properties for the other paints
circle_paint = new Paint ();
circle_paint.SetStyle (Paint.Style.Fill);
circle_paint.Dither = true;
circle_paint.AntiAlias = true;
led_paint = new Paint ();
led_paint.SetStyle (Paint.Style.Fill);
led_paint.Dither = true;
led_paint.AntiAlias = true;
BlurMaskFilter blur_mask_filter = new BlurMaskFilter (20.0f, BlurMaskFilter.Blur.Outer);
led_paint.SetMaskFilter (blur_mask_filter);
directional_paint = new Paint ();
directional_paint.Dither = true;
directional_paint.AntiAlias = true;
directional_paint.Alpha = 204;
gradient_paint = new Paint ();
gradient_paint.Dither = true;
gradient_paint.AntiAlias = true;
gradient_paint.Alpha = 204;
}
示例2: Apply
public void Apply(Paint pPaint)
{
pPaint.SetMaskFilter (mBlurMaskFilter);
}
示例3: Init
private void Init()
{
_buttonBackgroundPaint = new Paint(PaintFlags.AntiAlias);
_buttonBackgroundPaint.SetMaskFilter(new BlurMaskFilter(2, BlurMaskFilter.Blur.Normal));
_shadowPaint = new Paint();
_shadowPaint.AntiAlias = true;
}