Beispiel #1
0
        private void EnterDrawingMode(UIColor color)
        {
            if (AnnotationStateManager.State != PSPDFAnnotationString.Ink)
            {
                AnnotationStateManager.ToggleState(PSPDFAnnotationString.Ink);
            }

            AnnotationStateManager.DrawColor = color;

            if (AnnotationStateManager.DrawColor.CGColor.Alpha < 1)
            {
                AnnotationStateManager.LineWidth = 20f;
            }
            else
            {
                AnnotationStateManager.LineWidth = 3f;
            }
        }
 void HandleTouchUpInside(object sender, EventArgs e)
 {
     AnnotationStateManager.DrawColor = UIColor.Red;
     AnnotationStateManager.ToggleState(PSPDFAnnotationString.Ink);
     UpdateDrawButtonAppearance();
 }