/// <summary>
        /// Create a new RoundedLineEngine.
        /// </summary>
        /// <param name="parent_layer">The parent UserLayer for the re-editable DrawingLayer.</param>
        /// <param name="drawing_layer">An existing ReEditableLayer to reuse. This is for cloning only. If not cloning, pass in null.</param>
        /// <param name="passedRadius">The radius of the corners.</param>
        /// <param name="antialiasing">Whether or not antialiasing is enabled.</param>
        /// <param name="outline_color">The outline color for the shape.</param>
        /// <param name="fill_color">The fill color for the shape.</param>
        /// <param name="brush_width">The width of the outline of the shape.</param>
        public RoundedLineEngine(UserLayer parentLayer, ReEditableLayer passedDrawingLayer, double passedRadius, bool passedAA,
			Color passedOutlineColor, Color passedFillColor, int passedBrushWidth)
            : base(parentLayer, passedDrawingLayer,
			BaseEditEngine.ShapeTypes.RoundedLineSeries, passedAA, true, passedOutlineColor, passedFillColor, passedBrushWidth)
        {
            Radius = passedRadius;
        }
示例#2
0
		/// <summary>
		/// Create a new EllipseEngine.
		/// </summary>
		/// <param name="parent_layer">The parent UserLayer for the re-editable DrawingLayer.</param>
		/// <param name="drawing_layer">An existing ReEditableLayer to reuse. This is for cloning only. If not cloning, pass in null.</param>
		/// <param name="antialiasing">Whether or not antialiasing is enabled.</param>
		/// <param name="outline_color">The outline color for the shape.</param>
		/// <param name="fill_color">The fill color for the shape.</param>
		/// <param name="brush_width">The width of the outline of the shape.</param>
        public EllipseEngine (UserLayer parent_layer, ReEditableLayer drawing_layer,
                              bool antialiasing, Color outline_color, Color fill_color,
                              int brush_width)
            : base (parent_layer, drawing_layer, BaseEditEngine.ShapeTypes.Ellipse,
                    antialiasing, true, outline_color, fill_color, brush_width)
		{
			
		}
示例#3
0
文件: UserLayer.cs 项目: msiyer/Pinta
		private void setupUserLayer()
		{
			tEngine = new TextEngine();

			TextLayer = new ReEditableLayer(this);
		}
示例#4
0
        private void setupUserLayer()
        {
            tEngine = new TextEngine();

            TextLayer = new ReEditableLayer(this);
        }
示例#5
0
		/// <summary>
		/// Create a new LineCurveSeriesEngine.
		/// </summary>
		/// <param name="parent_layer">The parent UserLayer for the re-editable DrawingLayer.</param>
		/// <param name="drawing_layer">An existing ReEditableLayer to reuse. This is for cloning only. If not cloning, pass in null.</param>
		/// <param name="shape_type">The owner EditEngine.</param>
		/// <param name="antialiasing">Whether or not antialiasing is enabled.</param>
		/// <param name="closed">Whether or not the shape is closed (first and last points are connected).</param>
		/// <param name="outline_color">The outline color for the shape.</param>
		/// <param name="fill_color">The fill color for the shape.</param>
		/// <param name="brush_width">The width of the outline of the shape.</param>
		public LineCurveSeriesEngine(UserLayer parentLayer, ReEditableLayer passedDrawingLayer, BaseEditEngine.ShapeTypes passedShapeType,
			bool passedAA, bool passedClosed, Color passedOutlineColor, Color passedFillColor, int passedBrushWidth) : base(parentLayer,
			passedDrawingLayer, passedShapeType, passedAA, passedClosed, passedOutlineColor, passedFillColor, passedBrushWidth)
		{
			
		}
示例#6
0
 //Call the base class constructor and setup the engines.
 public UserLayer(ImageSurface surface, bool hidden, double opacity, string name) : base(surface, hidden, opacity, name)
 {
     tEngine   = new TextEngine();
     TextLayer = new ReEditableLayer(this);
 }