当前位置: 首页>>代码示例>>C#>>正文


C# Paint.SetMaskFilter方法代码示例

本文整理汇总了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;
		}
开发者ID:CHANDAN145,项目名称:monodroid-samples,代码行数:35,代码来源:ControllerView.cs

示例2: Apply

		public void Apply(Paint pPaint)
		{
			pPaint.SetMaskFilter (mBlurMaskFilter);
		}
开发者ID:jdluzen,项目名称:xamsvg,代码行数:4,代码来源:SVGFilterElementGaussianBlur.cs

示例3: Init

		private void Init()
		{
			_buttonBackgroundPaint = new Paint(PaintFlags.AntiAlias);
			_buttonBackgroundPaint.SetMaskFilter(new BlurMaskFilter(2, BlurMaskFilter.Blur.Normal));
			_shadowPaint = new Paint();
			_shadowPaint.AntiAlias = true;
		}
开发者ID:heith,项目名称:Xamarin.Android.FloatingActionButton,代码行数:7,代码来源:FloatingActionButton.cs


注:本文中的Android.Graphics.Paint.SetMaskFilter方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。