Пример #1
0
        /// <summary>
        /// Gets the corresponding rasterizer based on the input paint
        /// </summary>
        IPolygonRasterizer GetRasterizer(Paint paint)
        {
            if (paint is ColorPaint)
            {
                return(mColorRasterizer);
            }
            else if (paint is LinearGradient)
            {
                return(mLinearGradientRasterizer);
            }
            else if (paint is RadialGradient)
            {
                return(mRadialGradientRasterizer);
            }

            else
            {
                UnsupportedException.Publish(paint.GetType());
            }

            return(null);
        }
        public static void Publish(string message, string region)
        {
            var error = new UnsupportedException(message, region);

            BasePublish(error);
        }
 public static void Publish(string message, string region)
 {
     var error = new UnsupportedException(message, region);
     BasePublish(error);
 }
        public static void Publish(Type type)
        {
            var error = new UnsupportedException(type);

            BasePublish(error);
        }
 public static void Publish(Type type)
 {
     var error = new UnsupportedException(type);
     BasePublish(error);
 }