Exemplo n.º 1
0
        /// <summary>
        /// Occurs when the canvas is drawn.
        /// </summary>
        /// <param name="drawingSession"> The drawing-session. </param>
        /// <param name="matrix"> The matrix. </param>
        /// <param name="accentColor"> The accent color. </param>
        public void DrawCrop(CanvasDrawingSession drawingSession, Matrix3x2 matrix, Windows.UI.Color accentColor)
        {
            if (this.IsCrop)
            {
                Transformer transformer = this.Transformer;
                drawingSession.DrawBound(transformer, matrix, accentColor);

                Transformer cropTransformer = this.CropTransformer;
                drawingSession.DrawCrop(cropTransformer, matrix, Colors.BlueViolet);
            }
            else
            {
                Transformer transformer = this.Transformer;
                drawingSession.DrawCrop(transformer, matrix, accentColor);
            }
        }