public ShapesToolChanges(IEnumerable <KeyValuePair <string, object> > drawingSettingsValues, string shapeInfoSettingPath, IDictionary <PaintDotNet.Shapes.ShapeInfo, IDictionary <object, object> > allShapePropertyValues, PointDouble mouseStartPoint, PointDouble mouseEndPoint, bool shouldApplySnapping, bool shouldApplyConstraint, bool isEditingStartPoint, bool isEditingEndPoint, PaintDotNet.WhichUserColor whichUserColor, Matrix3x2Double transform, PointDouble?rotationAnchorOffset) : base(drawingSettingsValues) { this.shapeInfoSettingPath = shapeInfoSettingPath; this.InitializeAllShapePropertyValues(allShapePropertyValues); this.mouseStartPoint = mouseStartPoint; this.mouseEndPoint = mouseEndPoint; this.shouldApplySnapping = shouldApplySnapping; this.shouldApplyConstraint = shouldApplyConstraint; this.isEditingStartPoint = isEditingStartPoint; this.isEditingEndPoint = isEditingEndPoint; this.whichUserColor = whichUserColor; this.transform = transform; this.rotationAnchorOffset = rotationAnchorOffset; this.Initialize(); }
public PaintBucketToolChanges(IEnumerable <KeyValuePair <string, object> > drawingSettingsValues, PointDouble originPoint, FloodMode?floodModeOverride, PaintDotNet.WhichUserColor whichUserColor, GeometryList clippingMask) : base(drawingSettingsValues, originPoint, floodModeOverride) { this.whichUserColor = whichUserColor; if (clippingMask == null) { this.clippingMaskPO = null; this.clippingMaskPersistenceKey = Guid.Empty; } else { this.clippingMaskPO = new PersistedObject <GeometryList>(clippingMask, true); this.clippingMaskPersistenceKey = PersistedObjectLocker.Add <GeometryList>(this.clippingMaskPO); } this.Initialize(); }
public EraserToolChanges(IEnumerable <KeyValuePair <string, object> > drawingSettingsValues, PaintDotNet.WhichUserColor whichUserColor, IEnumerable <BrushInputPoint> inputPoints) : base(drawingSettingsValues, inputPoints) { this.WhichUserColor = whichUserColor; }
public PencilToolChanges(IEnumerable <KeyValuePair <string, object> > drawingSettingsValues, PaintDotNet.WhichUserColor whichUserColor, IEnumerable <PointDouble> points) : base(drawingSettingsValues) { this.WhichUserColor = whichUserColor; this.Points = new ReadOnlyCollection <PointDouble>(points.ToArrayEx <PointDouble>()); }
public PaintBucketToolChanges(IEnumerable <KeyValuePair <string, object> > drawingSettingsValues, PointDouble originPoint, FloodMode?floodModeOverride, PaintDotNet.WhichUserColor whichUserColor, Guid clippingMaskPersistenceKey) : base(drawingSettingsValues, originPoint, floodModeOverride) { this.whichUserColor = whichUserColor; this.clippingMaskPersistenceKey = clippingMaskPersistenceKey; this.Initialize(); }
public CloneStampToolChanges(IEnumerable <KeyValuePair <string, object> > drawingSettingsValues, PaintDotNet.WhichUserColor whichUserColor, IEnumerable <BrushInputPoint> inputPoints, int sourceLayerIndex, PointInt32 sourceSamplingOffset) : base(drawingSettingsValues, inputPoints) { this.WhichUserColor = whichUserColor; this.SourceLayerIndex = sourceLayerIndex; this.SourceSamplingOffset = sourceSamplingOffset; }