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; }
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; }
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 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; }
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(); }
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; }
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(); }
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; }