本文整理汇总了C#中Android.Graphics.Paint.ClearShadowLayer方法的典型用法代码示例。如果您正苦于以下问题:C# Paint.ClearShadowLayer方法的具体用法?C# Paint.ClearShadowLayer怎么用?C# Paint.ClearShadowLayer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Android.Graphics.Paint
的用法示例。
在下文中一共展示了Paint.ClearShadowLayer方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ApplyCustomTypeFace
private void ApplyCustomTypeFace(Paint paint, Typeface tf)
{
paint.FakeBoldText = false;
paint.TextSkewX = 0f;
paint.SetTypeface(tf);
if (_rotate)
paint.ClearShadowLayer();
if (_iconSizeRatio > 0)
paint.TextSize = (paint.TextSize * _iconSizeRatio);
else if (_iconSizePx > 0)
paint.TextSize = _iconSizePx;
if (_iconColor < Int32.MaxValue)
paint.Color = new Color(_iconColor);
paint.Flags = paint.Flags | PaintFlags.SubpixelText;
}
示例2: ApplyCustomTypeFace
private void ApplyCustomTypeFace(Paint paint, Typeface tf)
{
paint.FakeBoldText = false;
paint.TextSkewX = 0f;
paint.SetTypeface(tf);
if (rotate) paint.ClearShadowLayer();
if (iconSizeRatio > 0) paint.TextSize = paint.TextSize * iconSizeRatio;
else if (iconSizePx > 0) paint.TextSize = iconSizePx;
if (iconColor < int.MaxValue) paint.Color = new Color(iconColor);
}
示例3: ApplyCustomTypeFace
private void ApplyCustomTypeFace(Paint paint, Typeface typeface)
{
paint.FakeBoldText = false;
paint.TextSkewX = 0f;
paint.SetTypeface(typeface);
if (_rotate)
{
paint.ClearShadowLayer();
}
if (_iconSizeRatio > 0)
{
paint.TextSize = paint.TextSize*_iconSizeRatio;
}
else if (_iconSizePx > 0)
{
paint.TextSize = _iconSizePx;
}
if (_iconColor < int.MaxValue)
{
paint.Color = _iconColor;
}
}