コード例 #1
0
        /// <summary>
        /// Set a shadow using a preset.
        /// </summary>
        /// <param name="Preset">The preset to be used.</param>
        public void SetPreset(SLShadowPresetValues Preset)
        {
            System.Drawing.Color clr = System.Drawing.Color.FromArgb(0, 0, 0);

            switch (Preset)
            {
            case SLShadowPresetValues.None:
                this.SetAllNull();
                break;

            case SLShadowPresetValues.OuterDiagonalBottomRight:
                this.IsInnerShadow = false;
                this.OuterShadowColor.SetColor(clr, 60);
                this.OuterShadowHorizontalRatio = 100;
                this.OuterShadowVerticalRatio   = 100;
                this.OuterShadowHorizontalSkew  = 0;
                this.OuterShadowVerticalSkew    = 0;
                this.OuterShadowBlurRadius      = 4;
                this.OuterShadowDirection       = 45;
                this.OuterShadowDistance        = 3;
                this.OuterShadowAlignment       = A.RectangleAlignmentValues.TopLeft;
                this.OuterShadowRotateWithShape = false;
                break;

            case SLShadowPresetValues.OuterBottom:
                this.IsInnerShadow = false;
                this.OuterShadowColor.SetColor(clr, 60);
                this.OuterShadowHorizontalRatio = 100;
                this.OuterShadowVerticalRatio   = 100;
                this.OuterShadowHorizontalSkew  = 0;
                this.OuterShadowVerticalSkew    = 0;
                this.OuterShadowBlurRadius      = 4;
                this.OuterShadowDirection       = 90;
                this.OuterShadowDistance        = 3;
                this.OuterShadowAlignment       = A.RectangleAlignmentValues.Top;
                this.OuterShadowRotateWithShape = false;
                break;

            case SLShadowPresetValues.OuterDiagonalBottomLeft:
                this.IsInnerShadow = false;
                this.OuterShadowColor.SetColor(clr, 60);
                this.OuterShadowHorizontalRatio = 100;
                this.OuterShadowVerticalRatio   = 100;
                this.OuterShadowHorizontalSkew  = 0;
                this.OuterShadowVerticalSkew    = 0;
                this.OuterShadowBlurRadius      = 4;
                this.OuterShadowDirection       = 135;
                this.OuterShadowDistance        = 3;
                this.OuterShadowAlignment       = A.RectangleAlignmentValues.TopRight;
                this.OuterShadowRotateWithShape = false;
                break;

            case SLShadowPresetValues.OuterRight:
                this.IsInnerShadow = false;
                this.OuterShadowColor.SetColor(clr, 60);
                this.OuterShadowHorizontalRatio = 100;
                this.OuterShadowVerticalRatio   = 100;
                this.OuterShadowHorizontalSkew  = 0;
                this.OuterShadowVerticalSkew    = 0;
                this.OuterShadowBlurRadius      = 4;
                this.OuterShadowDirection       = 0;
                this.OuterShadowDistance        = 3;
                this.OuterShadowAlignment       = A.RectangleAlignmentValues.Left;
                this.OuterShadowRotateWithShape = false;
                break;

            case SLShadowPresetValues.OuterCenter:
                this.IsInnerShadow = false;
                this.OuterShadowColor.SetColor(clr, 60);
                this.OuterShadowHorizontalRatio = 102;
                this.OuterShadowVerticalRatio   = 102;
                this.OuterShadowHorizontalSkew  = 0;
                this.OuterShadowVerticalSkew    = 0;
                this.OuterShadowBlurRadius      = 5;
                this.OuterShadowDirection       = 0;
                this.OuterShadowDistance        = 0;
                this.OuterShadowAlignment       = A.RectangleAlignmentValues.Center;
                this.OuterShadowRotateWithShape = false;
                break;

            case SLShadowPresetValues.OuterLeft:
                this.IsInnerShadow = false;
                this.OuterShadowColor.SetColor(clr, 60);
                this.OuterShadowHorizontalRatio = 100;
                this.OuterShadowVerticalRatio   = 100;
                this.OuterShadowHorizontalSkew  = 0;
                this.OuterShadowVerticalSkew    = 0;
                this.OuterShadowBlurRadius      = 4;
                this.OuterShadowDirection       = 180;
                this.OuterShadowDistance        = 3;
                this.OuterShadowAlignment       = A.RectangleAlignmentValues.Right;
                this.OuterShadowRotateWithShape = false;
                break;

            case SLShadowPresetValues.OuterDiagonalTopRight:
                this.IsInnerShadow = false;
                this.OuterShadowColor.SetColor(clr, 60);
                this.OuterShadowHorizontalRatio = 100;
                this.OuterShadowVerticalRatio   = 100;
                this.OuterShadowHorizontalSkew  = 0;
                this.OuterShadowVerticalSkew    = 0;
                this.OuterShadowBlurRadius      = 4;
                this.OuterShadowDirection       = 315;
                this.OuterShadowDistance        = 3;
                this.OuterShadowAlignment       = A.RectangleAlignmentValues.BottomLeft;
                this.OuterShadowRotateWithShape = false;
                break;

            case SLShadowPresetValues.OuterTop:
                this.IsInnerShadow = false;
                this.OuterShadowColor.SetColor(clr, 60);
                this.OuterShadowHorizontalRatio = 100;
                this.OuterShadowVerticalRatio   = 100;
                this.OuterShadowHorizontalSkew  = 0;
                this.OuterShadowVerticalSkew    = 0;
                this.OuterShadowBlurRadius      = 4;
                this.OuterShadowDirection       = 270;
                this.OuterShadowDistance        = 3;
                this.OuterShadowAlignment       = A.RectangleAlignmentValues.Bottom;
                this.OuterShadowRotateWithShape = false;
                break;

            case SLShadowPresetValues.OuterDiagonalTopLeft:
                this.IsInnerShadow = false;
                this.OuterShadowColor.SetColor(clr, 60);
                this.OuterShadowHorizontalRatio = 100;
                this.OuterShadowVerticalRatio   = 100;
                this.OuterShadowHorizontalSkew  = 0;
                this.OuterShadowVerticalSkew    = 0;
                this.OuterShadowBlurRadius      = 4;
                this.OuterShadowDirection       = 225;
                this.OuterShadowDistance        = 3;
                this.OuterShadowAlignment       = A.RectangleAlignmentValues.BottomRight;
                this.OuterShadowRotateWithShape = false;
                break;

            case SLShadowPresetValues.InnerDiagonalTopLeft:
                this.IsInnerShadow = true;
                this.InnerShadowColor.SetColor(clr, 50);
                this.InnerShadowBlurRadius = 5;
                this.InnerShadowDirection  = 225;
                this.InnerShadowDistance   = 4;
                break;

            case SLShadowPresetValues.InnerTop:
                this.IsInnerShadow = true;
                this.InnerShadowColor.SetColor(clr, 50);
                this.InnerShadowBlurRadius = 5;
                this.InnerShadowDirection  = 270;
                this.InnerShadowDistance   = 4;
                break;

            case SLShadowPresetValues.InnerDiagonalTopRight:
                this.IsInnerShadow = true;
                this.InnerShadowColor.SetColor(clr, 50);
                this.InnerShadowBlurRadius = 5;
                this.InnerShadowDirection  = 315;
                this.InnerShadowDistance   = 4;
                break;

            case SLShadowPresetValues.InnerLeft:
                this.IsInnerShadow = true;
                this.InnerShadowColor.SetColor(clr, 50);
                this.InnerShadowBlurRadius = 5;
                this.InnerShadowDirection  = 180;
                this.InnerShadowDistance   = 4;
                break;

            case SLShadowPresetValues.InnerCenter:
                this.IsInnerShadow = true;
                this.InnerShadowColor.SetColor(clr, 0);
                this.InnerShadowBlurRadius = 9;
                this.InnerShadowDirection  = 0;
                this.InnerShadowDistance   = 0;
                break;

            case SLShadowPresetValues.InnerRight:
                this.IsInnerShadow = true;
                this.InnerShadowColor.SetColor(clr, 50);
                this.InnerShadowBlurRadius = 5;
                this.InnerShadowDirection  = 0;
                this.InnerShadowDistance   = 4;
                break;

            case SLShadowPresetValues.InnerDiagonalBottomLeft:
                this.IsInnerShadow = true;
                this.InnerShadowColor.SetColor(clr, 50);
                this.InnerShadowBlurRadius = 5;
                this.InnerShadowDirection  = 135;
                this.InnerShadowDistance   = 4;
                break;

            case SLShadowPresetValues.InnerBottom:
                this.IsInnerShadow = true;
                this.InnerShadowColor.SetColor(clr, 50);
                this.InnerShadowBlurRadius = 5;
                this.InnerShadowDirection  = 90;
                this.InnerShadowDistance   = 4;
                break;

            case SLShadowPresetValues.InnerDiagonalBottomRight:
                this.IsInnerShadow = true;
                this.InnerShadowColor.SetColor(clr, 50);
                this.InnerShadowBlurRadius = 5;
                this.InnerShadowDirection  = 45;
                this.InnerShadowDistance   = 4;
                break;

            case SLShadowPresetValues.PerspectiveDiagonalUpperLeft:
                this.IsInnerShadow = false;
                this.OuterShadowColor.SetColor(clr, 80);
                this.OuterShadowHorizontalRatio = 100;
                this.OuterShadowVerticalRatio   = 23;
                this.OuterShadowHorizontalSkew  = 20;
                this.OuterShadowVerticalSkew    = 0;
                this.OuterShadowBlurRadius      = 6;
                this.OuterShadowDirection       = 225;
                this.OuterShadowDistance        = 0;
                this.OuterShadowAlignment       = A.RectangleAlignmentValues.BottomRight;
                this.OuterShadowRotateWithShape = false;
                break;

            case SLShadowPresetValues.PerspectiveDiagonalUpperRight:
                this.IsInnerShadow = false;
                this.OuterShadowColor.SetColor(clr, 80);
                this.OuterShadowHorizontalRatio = 100;
                this.OuterShadowVerticalRatio   = 23;
                this.OuterShadowHorizontalSkew  = -20;
                this.OuterShadowVerticalSkew    = 0;
                this.OuterShadowBlurRadius      = 6;
                this.OuterShadowDirection       = 315;
                this.OuterShadowDistance        = 0;
                this.OuterShadowAlignment       = A.RectangleAlignmentValues.BottomLeft;
                this.OuterShadowRotateWithShape = false;
                break;

            case SLShadowPresetValues.PerspectiveBelow:
                this.IsInnerShadow = false;
                this.OuterShadowColor.SetColor(clr, 85);
                this.OuterShadowHorizontalRatio = 90;
                this.OuterShadowVerticalRatio   = 100;
                this.OuterShadowHorizontalSkew  = 0;
                this.OuterShadowVerticalSkew    = -0.3166667m;
                this.OuterShadowBlurRadius      = 12;
                this.OuterShadowDirection       = 90;
                this.OuterShadowDistance        = 25;
                this.OuterShadowAlignment       = A.RectangleAlignmentValues.Bottom;
                this.OuterShadowRotateWithShape = false;
                break;

            case SLShadowPresetValues.PerspectiveDiagonalLowerLeft:
                this.IsInnerShadow = false;
                this.OuterShadowColor.SetColor(clr, 80);
                this.OuterShadowHorizontalRatio = 100;
                this.OuterShadowVerticalRatio   = -23;
                this.OuterShadowHorizontalSkew  = 13.34m;
                this.OuterShadowVerticalSkew    = 0;
                this.OuterShadowBlurRadius      = 6;
                this.OuterShadowDirection       = 135;
                this.OuterShadowDistance        = 1;
                this.OuterShadowAlignment       = A.RectangleAlignmentValues.BottomRight;
                this.OuterShadowRotateWithShape = false;
                break;

            case SLShadowPresetValues.PerspectiveDiagonalLowerRight:
                this.IsInnerShadow = false;
                this.OuterShadowColor.SetColor(clr, 80);
                this.OuterShadowHorizontalRatio = 100;
                this.OuterShadowVerticalRatio   = -23;
                this.OuterShadowHorizontalSkew  = -13.34m;
                this.OuterShadowVerticalSkew    = 0;
                this.OuterShadowBlurRadius      = 6;
                this.OuterShadowDirection       = 45;
                this.OuterShadowDistance        = 1;
                this.OuterShadowAlignment       = A.RectangleAlignmentValues.BottomLeft;
                this.OuterShadowRotateWithShape = false;
                break;
            }
        }
コード例 #2
0
        /// <summary>
        /// Set a shadow using a preset.
        /// </summary>
        /// <param name="Preset">The preset to be used.</param>
        public void SetPreset(SLShadowPresetValues Preset)
        {
            System.Drawing.Color clr = System.Drawing.Color.FromArgb(0, 0, 0);

            switch (Preset)
            {
                case SLShadowPresetValues.None:
                    this.SetAllNull();
                    break;
                case SLShadowPresetValues.OuterDiagonalBottomRight:
                    this.IsInnerShadow = false;
                    this.OuterShadowColor.SetColor(clr, 60);
                    this.OuterShadowHorizontalRatio = 100;
                    this.OuterShadowVerticalRatio = 100;
                    this.OuterShadowHorizontalSkew = 0;
                    this.OuterShadowVerticalSkew = 0;
                    this.OuterShadowBlurRadius = 4;
                    this.OuterShadowDirection = 45;
                    this.OuterShadowDistance = 3;
                    this.OuterShadowAlignment = A.RectangleAlignmentValues.TopLeft;
                    this.OuterShadowRotateWithShape = false;
                    break;
                case SLShadowPresetValues.OuterBottom:
                    this.IsInnerShadow = false;
                    this.OuterShadowColor.SetColor(clr, 60);
                    this.OuterShadowHorizontalRatio = 100;
                    this.OuterShadowVerticalRatio = 100;
                    this.OuterShadowHorizontalSkew = 0;
                    this.OuterShadowVerticalSkew = 0;
                    this.OuterShadowBlurRadius = 4;
                    this.OuterShadowDirection = 90;
                    this.OuterShadowDistance = 3;
                    this.OuterShadowAlignment = A.RectangleAlignmentValues.Top;
                    this.OuterShadowRotateWithShape = false;
                    break;
                case SLShadowPresetValues.OuterDiagonalBottomLeft:
                    this.IsInnerShadow = false;
                    this.OuterShadowColor.SetColor(clr, 60);
                    this.OuterShadowHorizontalRatio = 100;
                    this.OuterShadowVerticalRatio = 100;
                    this.OuterShadowHorizontalSkew = 0;
                    this.OuterShadowVerticalSkew = 0;
                    this.OuterShadowBlurRadius = 4;
                    this.OuterShadowDirection = 135;
                    this.OuterShadowDistance = 3;
                    this.OuterShadowAlignment = A.RectangleAlignmentValues.TopRight;
                    this.OuterShadowRotateWithShape = false;
                    break;
                case SLShadowPresetValues.OuterRight:
                    this.IsInnerShadow = false;
                    this.OuterShadowColor.SetColor(clr, 60);
                    this.OuterShadowHorizontalRatio = 100;
                    this.OuterShadowVerticalRatio = 100;
                    this.OuterShadowHorizontalSkew = 0;
                    this.OuterShadowVerticalSkew = 0;
                    this.OuterShadowBlurRadius = 4;
                    this.OuterShadowDirection = 0;
                    this.OuterShadowDistance = 3;
                    this.OuterShadowAlignment = A.RectangleAlignmentValues.Left;
                    this.OuterShadowRotateWithShape = false;
                    break;
                case SLShadowPresetValues.OuterCenter:
                    this.IsInnerShadow = false;
                    this.OuterShadowColor.SetColor(clr, 60);
                    this.OuterShadowHorizontalRatio = 102;
                    this.OuterShadowVerticalRatio = 102;
                    this.OuterShadowHorizontalSkew = 0;
                    this.OuterShadowVerticalSkew = 0;
                    this.OuterShadowBlurRadius = 5;
                    this.OuterShadowDirection = 0;
                    this.OuterShadowDistance = 0;
                    this.OuterShadowAlignment = A.RectangleAlignmentValues.Center;
                    this.OuterShadowRotateWithShape = false;
                    break;
                case SLShadowPresetValues.OuterLeft:
                    this.IsInnerShadow = false;
                    this.OuterShadowColor.SetColor(clr, 60);
                    this.OuterShadowHorizontalRatio = 100;
                    this.OuterShadowVerticalRatio = 100;
                    this.OuterShadowHorizontalSkew = 0;
                    this.OuterShadowVerticalSkew = 0;
                    this.OuterShadowBlurRadius = 4;
                    this.OuterShadowDirection = 180;
                    this.OuterShadowDistance = 3;
                    this.OuterShadowAlignment = A.RectangleAlignmentValues.Right;
                    this.OuterShadowRotateWithShape = false;
                    break;
                case SLShadowPresetValues.OuterDiagonalTopRight:
                    this.IsInnerShadow = false;
                    this.OuterShadowColor.SetColor(clr, 60);
                    this.OuterShadowHorizontalRatio = 100;
                    this.OuterShadowVerticalRatio = 100;
                    this.OuterShadowHorizontalSkew = 0;
                    this.OuterShadowVerticalSkew = 0;
                    this.OuterShadowBlurRadius = 4;
                    this.OuterShadowDirection = 315;
                    this.OuterShadowDistance = 3;
                    this.OuterShadowAlignment = A.RectangleAlignmentValues.BottomLeft;
                    this.OuterShadowRotateWithShape = false;
                    break;
                case SLShadowPresetValues.OuterTop:
                    this.IsInnerShadow = false;
                    this.OuterShadowColor.SetColor(clr, 60);
                    this.OuterShadowHorizontalRatio = 100;
                    this.OuterShadowVerticalRatio = 100;
                    this.OuterShadowHorizontalSkew = 0;
                    this.OuterShadowVerticalSkew = 0;
                    this.OuterShadowBlurRadius = 4;
                    this.OuterShadowDirection = 270;
                    this.OuterShadowDistance = 3;
                    this.OuterShadowAlignment = A.RectangleAlignmentValues.Bottom;
                    this.OuterShadowRotateWithShape = false;
                    break;
                case SLShadowPresetValues.OuterDiagonalTopLeft:
                    this.IsInnerShadow = false;
                    this.OuterShadowColor.SetColor(clr, 60);
                    this.OuterShadowHorizontalRatio = 100;
                    this.OuterShadowVerticalRatio = 100;
                    this.OuterShadowHorizontalSkew = 0;
                    this.OuterShadowVerticalSkew = 0;
                    this.OuterShadowBlurRadius = 4;
                    this.OuterShadowDirection = 225;
                    this.OuterShadowDistance = 3;
                    this.OuterShadowAlignment = A.RectangleAlignmentValues.BottomRight;
                    this.OuterShadowRotateWithShape = false;
                    break;
                case SLShadowPresetValues.InnerDiagonalTopLeft:
                    this.IsInnerShadow = true;
                    this.InnerShadowColor.SetColor(clr, 50);
                    this.InnerShadowBlurRadius = 5;
                    this.InnerShadowDirection = 225;
                    this.InnerShadowDistance = 4;
                    break;
                case SLShadowPresetValues.InnerTop:
                    this.IsInnerShadow = true;
                    this.InnerShadowColor.SetColor(clr, 50);
                    this.InnerShadowBlurRadius = 5;
                    this.InnerShadowDirection = 270;
                    this.InnerShadowDistance = 4;
                    break;
                case SLShadowPresetValues.InnerDiagonalTopRight:
                    this.IsInnerShadow = true;
                    this.InnerShadowColor.SetColor(clr, 50);
                    this.InnerShadowBlurRadius = 5;
                    this.InnerShadowDirection = 315;
                    this.InnerShadowDistance = 4;
                    break;
                case SLShadowPresetValues.InnerLeft:
                    this.IsInnerShadow = true;
                    this.InnerShadowColor.SetColor(clr, 50);
                    this.InnerShadowBlurRadius = 5;
                    this.InnerShadowDirection = 180;
                    this.InnerShadowDistance = 4;
                    break;
                case SLShadowPresetValues.InnerCenter:
                    this.IsInnerShadow = true;
                    this.InnerShadowColor.SetColor(clr, 0);
                    this.InnerShadowBlurRadius = 9;
                    this.InnerShadowDirection = 0;
                    this.InnerShadowDistance = 0;
                    break;
                case SLShadowPresetValues.InnerRight:
                    this.IsInnerShadow = true;
                    this.InnerShadowColor.SetColor(clr, 50);
                    this.InnerShadowBlurRadius = 5;
                    this.InnerShadowDirection = 0;
                    this.InnerShadowDistance = 4;
                    break;
                case SLShadowPresetValues.InnerDiagonalBottomLeft:
                    this.IsInnerShadow = true;
                    this.InnerShadowColor.SetColor(clr, 50);
                    this.InnerShadowBlurRadius = 5;
                    this.InnerShadowDirection = 135;
                    this.InnerShadowDistance = 4;
                    break;
                case SLShadowPresetValues.InnerBottom:
                    this.IsInnerShadow = true;
                    this.InnerShadowColor.SetColor(clr, 50);
                    this.InnerShadowBlurRadius = 5;
                    this.InnerShadowDirection = 90;
                    this.InnerShadowDistance = 4;
                    break;
                case SLShadowPresetValues.InnerDiagonalBottomRight:
                    this.IsInnerShadow = true;
                    this.InnerShadowColor.SetColor(clr, 50);
                    this.InnerShadowBlurRadius = 5;
                    this.InnerShadowDirection = 45;
                    this.InnerShadowDistance = 4;
                    break;
                case SLShadowPresetValues.PerspectiveDiagonalUpperLeft:
                    this.IsInnerShadow = false;
                    this.OuterShadowColor.SetColor(clr, 80);
                    this.OuterShadowHorizontalRatio = 100;
                    this.OuterShadowVerticalRatio = 23;
                    this.OuterShadowHorizontalSkew = 20;
                    this.OuterShadowVerticalSkew = 0;
                    this.OuterShadowBlurRadius = 6;
                    this.OuterShadowDirection = 225;
                    this.OuterShadowDistance = 0;
                    this.OuterShadowAlignment = A.RectangleAlignmentValues.BottomRight;
                    this.OuterShadowRotateWithShape = false;
                    break;
                case SLShadowPresetValues.PerspectiveDiagonalUpperRight:
                    this.IsInnerShadow = false;
                    this.OuterShadowColor.SetColor(clr, 80);
                    this.OuterShadowHorizontalRatio = 100;
                    this.OuterShadowVerticalRatio = 23;
                    this.OuterShadowHorizontalSkew = -20;
                    this.OuterShadowVerticalSkew = 0;
                    this.OuterShadowBlurRadius = 6;
                    this.OuterShadowDirection = 315;
                    this.OuterShadowDistance = 0;
                    this.OuterShadowAlignment = A.RectangleAlignmentValues.BottomLeft;
                    this.OuterShadowRotateWithShape = false;
                    break;
                case SLShadowPresetValues.PerspectiveBelow:
                    this.IsInnerShadow = false;
                    this.OuterShadowColor.SetColor(clr, 85);
                    this.OuterShadowHorizontalRatio = 90;
                    this.OuterShadowVerticalRatio = 100;
                    this.OuterShadowHorizontalSkew = 0;
                    this.OuterShadowVerticalSkew = -0.3166667m;
                    this.OuterShadowBlurRadius = 12;
                    this.OuterShadowDirection = 90;
                    this.OuterShadowDistance = 25;
                    this.OuterShadowAlignment = A.RectangleAlignmentValues.Bottom;
                    this.OuterShadowRotateWithShape = false;
                    break;
                case SLShadowPresetValues.PerspectiveDiagonalLowerLeft:
                    this.IsInnerShadow = false;
                    this.OuterShadowColor.SetColor(clr, 80);
                    this.OuterShadowHorizontalRatio = 100;
                    this.OuterShadowVerticalRatio = -23;
                    this.OuterShadowHorizontalSkew = 13.34m;
                    this.OuterShadowVerticalSkew = 0;
                    this.OuterShadowBlurRadius = 6;
                    this.OuterShadowDirection = 135;
                    this.OuterShadowDistance = 1;
                    this.OuterShadowAlignment = A.RectangleAlignmentValues.BottomRight;
                    this.OuterShadowRotateWithShape = false;
                    break;
                case SLShadowPresetValues.PerspectiveDiagonalLowerRight:
                    this.IsInnerShadow = false;
                    this.OuterShadowColor.SetColor(clr, 80);
                    this.OuterShadowHorizontalRatio = 100;
                    this.OuterShadowVerticalRatio = -23;
                    this.OuterShadowHorizontalSkew = -13.34m;
                    this.OuterShadowVerticalSkew = 0;
                    this.OuterShadowBlurRadius = 6;
                    this.OuterShadowDirection = 45;
                    this.OuterShadowDistance = 1;
                    this.OuterShadowAlignment = A.RectangleAlignmentValues.BottomLeft;
                    this.OuterShadowRotateWithShape = false;
                    break;
            }
        }