Beispiel #1
0
 internal BitmapShape(Paint2DForm parent, RectF rect, D2DBitmap bitmap, float transparency)
     : base(parent)
 {
     _rect         = rect;
     _bitmap       = bitmap;
     _transparency = transparency;
 }
 internal RectangleShape(Paint2DForm parent, RectF rect, float strokeWidth, int selectedBrush, bool fill)
     : base(parent, fill)
 {
     _rect               = rect;
     _strokeWidth        = strokeWidth;
     _selectedBrushIndex = selectedBrush;
 }
Beispiel #3
0
 internal BitmapShape(Paint2DForm parent, RectF rect, D2DBitmap bitmap, float transparency)
     : base(parent)
 {
     _rect = rect;
     _bitmap = bitmap;
     _transparency = transparency;
 }
Beispiel #4
0
 internal LineShape(Paint2DForm parent, Point2F point0, Point2F point1, float strokeWidth, int selectedBrush) : base(parent)
 {
     _point0             = point0;
     _point1             = point1;
     _strokeWidth        = strokeWidth;
     _selectedBrushIndex = selectedBrush;
 }
 internal RoundRectangleShape(Paint2DForm parent, RoundedRect rect, float strokeWidth, int selectedBrush, bool fill)
     : base(parent, fill)
 {
     _rect = rect;
     _strokeWidth = strokeWidth;
     _selectedBrushIndex = selectedBrush;
 }
Beispiel #6
0
 internal EllipseShape(Paint2DForm parent, Ellipse ellipse, float strokeWidth, int selectedBrush, bool fill)
     : base(parent, fill)
 {
     _startPoint         = ellipse.Point;
     _ellipse            = ellipse;
     _strokeWidth        = strokeWidth;
     _selectedBrushIndex = selectedBrush;
 }
Beispiel #7
0
 internal EllipseShape(Paint2DForm parent, Ellipse ellipse, float strokeWidth, int selectedBrush, bool fill)
     : base(parent, fill)
 {
     _startPoint = ellipse.Point;
     _ellipse = ellipse;
     _strokeWidth = strokeWidth;
     _selectedBrushIndex = selectedBrush;
 }
 internal GeometryShape(Paint2DForm parent, Point2F point0, float strokeWidth, int selectedBrush, bool fill)
     : base(parent)
 {
     _points = new List<Point2F> { point0 };
     _strokeWidth = strokeWidth;
     _selectedBrushIndex = selectedBrush;
     _fill = fill;
 }
        internal LineShape(Paint2DForm parent, Point2F point0, Point2F point1, float strokeWidth, int selectedBrush) : base(parent)
        {
            _point0 = point0;
            _point1 = point1;
            _strokeWidth = strokeWidth;
            _selectedBrushIndex = selectedBrush;

        }
Beispiel #10
0
 internal TextShape(Paint2DForm parent, TextLayout textLayout, Point2F startPoint, float maxX, float maxY, int selectedBrush)
     : base(parent)
 {
     _maxX               = maxX;
     _maxY               = maxY;
     _textLayout         = textLayout;
     _selectedBrushIndex = selectedBrush;
     _point0             = startPoint;
 }
Beispiel #11
0
 public BrushDialog(Paint2DForm parent, RenderTarget renderTarget)
 {
     this.renderTarget = renderTarget;
     this.parent = parent;
     InitializeComponent();
     for (int i = 0; i < transparencyValues.Items.Count; i++)
         transparencyValues.Items[i] = ((string)transparencyValues.Items[i]).Replace(".", CultureInfo.CurrentUICulture.NumberFormat.NumberDecimalSeparator);
     FillBrushesListBox();
 }
Beispiel #12
0
 internal TextShape(Paint2DForm parent, TextLayout textLayout, Point2F startPoint, float maxX, float maxY, int selectedBrush)
     : base(parent)
 {
     _maxX = maxX;
     _maxY = maxY;
     _textLayout = textLayout;
     _selectedBrushIndex = selectedBrush;
     _point0 = startPoint;
 }
Beispiel #13
0
 internal GeometryShape(Paint2DForm parent, Point2F point0, float strokeWidth, int selectedBrush, bool fill)
     : base(parent)
 {
     _points = new List <Point2F> {
         point0
     };
     _strokeWidth        = strokeWidth;
     _selectedBrushIndex = selectedBrush;
     _fill = fill;
 }
Beispiel #14
0
 public BrushDialog(Paint2DForm parent, RenderTarget renderTarget)
 {
     this.renderTarget = renderTarget;
     this.parent       = parent;
     InitializeComponent();
     for (int i = 0; i < transparencyValues.Items.Count; i++)
     {
         transparencyValues.Items[i] = ((string)transparencyValues.Items[i]).Replace(".", CultureInfo.CurrentUICulture.NumberFormat.NumberDecimalSeparator);
     }
     FillBrushesListBox();
 }
Beispiel #15
0
        public TextDialog(Paint2DForm parent)
        {
            InitializeComponent();

            this.parent = parent;

            if (!DesignMode)
            {
                fontFamilyCombo.Initialize();
            }
            fontFamilyCombo.SelectedIndex = 0; // First Choice
            sizeCombo.SelectedIndex = 7; // 24.0
            weightCombo.SelectedIndex = 3; // Normal
            styleCombo.SelectedIndex = 0; // Normal
            stretchCombo.SelectedIndex = 5; // Normal
        }
Beispiel #16
0
        public TextDialog(Paint2DForm parent)
        {
            InitializeComponent();

            this.parent = parent;

            if (!DesignMode)
            {
                fontFamilyCombo.Initialize();
            }
            fontFamilyCombo.SelectedIndex = 0; // First Choice
            sizeCombo.SelectedIndex       = 7; // 24.0
            weightCombo.SelectedIndex     = 3; // Normal
            styleCombo.SelectedIndex      = 0; // Normal
            stretchCombo.SelectedIndex    = 5; // Normal
        }
 protected DrawingShape(Paint2DForm parent)
 {
     this._parent = parent;
 }
 protected DrawingShape(Paint2DForm parent, bool fill) : this(parent)
 {
     this._fill = fill;
 }
 protected DrawingShape(Paint2DForm parent)
 {
     this._parent = parent;
 }
 protected DrawingShape(Paint2DForm parent, bool fill) : this(parent)
 {
     this._fill = fill;
 }