Exemple #1
0
        private IPaint CreateScaleBarPaint(Color color, float strokeWidth, Style style)
        {
            IPaint paint = this.graphicFactory.CreatePaint();

            paint.Color       = color;
            paint.StrokeWidth = strokeWidth * this.displayModel.ScaleFactor;
            paint.Style       = style;
            paint.StrokeCap   = Cap.SQUARE;
            return(paint);
        }
Exemple #2
0
        private IPaint CreateTextPaint(Color color, float strokeWidth, Style style)
        {
            IPaint paint = this.graphicFactory.CreatePaint();

            paint.Color       = color;
            paint.StrokeWidth = strokeWidth * this.displayModel.ScaleFactor;
            paint.Style       = style;
            paint.SetTypeface(FontFamily.DEFAULT, FontStyle.BOLD);
            paint.TextSize = 12 * this.displayModel.ScaleFactor;

            return(paint);
        }