예제 #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);
            }
        }
예제 #2
0
        public override void DrawWireframe(CanvasDrawingSession drawingSession, Matrix3x2 matrix, Windows.UI.Color accentColor)
        {
            Transformer transformer = base.Transform.GetActualTransformer();

            drawingSession.DrawBound(transformer, matrix);
        }
        /// <summary>
        /// Draw lines on bound.
        /// </summary>
        /// <param name="drawingSession"> The drawing-session. </param>
        /// <param name="matrix"> The matrix. </param>
        /// <param name="accentColor"> The accent color. </param>
        public virtual void DrawBound(CanvasDrawingSession drawingSession, Matrix3x2 matrix, Windows.UI.Color accentColor)
        {
            Transformer transformer = this.Transform.GetActualTransformer();

            drawingSession.DrawBound(transformer, matrix);
        }