Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 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();
 }
Exemplo n.º 3
0
 public EraserToolChanges(IEnumerable <KeyValuePair <string, object> > drawingSettingsValues, PaintDotNet.WhichUserColor whichUserColor, IEnumerable <BrushInputPoint> inputPoints) : base(drawingSettingsValues, inputPoints)
 {
     this.WhichUserColor = whichUserColor;
 }
Exemplo n.º 4
0
 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>());
 }
Exemplo n.º 5
0
 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();
 }
Exemplo n.º 6
0
 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;
 }