Ejemplo n.º 1
0
 internal BitmapShape(Paint2DForm parent, RectF rect, D2DBitmap bitmap, float transparency)
     : base(parent)
 {
     _rect         = rect;
     _bitmap       = bitmap;
     _transparency = transparency;
 }
Ejemplo n.º 2
0
 internal RectangleShape(Paint2DForm parent, RectF rect, float strokeWidth, int selectedBrush, bool fill)
     : base(parent, fill)
 {
     _rect               = rect;
     _strokeWidth        = strokeWidth;
     _selectedBrushIndex = selectedBrush;
 }
Ejemplo n.º 3
0
 internal BitmapShape(Paint2DForm parent, RectF rect, D2DBitmap bitmap, float transparency)
     : base(parent)
 {
     _rect = rect;
     _bitmap = bitmap;
     _transparency = transparency;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;

        }
Ejemplo n.º 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;
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 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
        }
Ejemplo n.º 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
        }
Ejemplo n.º 17
0
 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;
 }
Ejemplo n.º 20
0
 protected DrawingShape(Paint2DForm parent, bool fill) : this(parent)
 {
     this._fill = fill;
 }