コード例 #1
0
ファイル: ConfigToken.cs プロジェクト: feeleen/pdn-smudge
 public ConfigToken()
 {
     brush    = new PngBrush("Soft Brush");
     width    = 30;
     strength = 0.25f;
     jitter   = 0f;
     quality  = 1.0f;
 }
コード例 #2
0
ファイル: ConfigToken.cs プロジェクト: feeleen/pdn-smudge
 public ConfigToken(ConfigToken toCopy)
 {
     this.surface  = toCopy.surface;
     this.brush    = toCopy.brush;
     this.width    = toCopy.width;
     this.strength = toCopy.strength;
     this.jitter   = toCopy.jitter;
     this.quality  = toCopy.quality;
 }
コード例 #3
0
 public SmudgeEventArgs(QueuedToolEventType eventtype, CanvasMouseEventArgs eventargs, PngBrush brush, int brushwidth, float strength, float jitter, float quality)
     : base(eventtype)
 {
     Button     = eventargs.Button;
     X          = (int)eventargs.X;
     Y          = (int)eventargs.Y;
     Brush      = brush;
     BrushWidth = brushwidth;
     Strength   = strength;
     Jitter     = jitter;
     Quality    = quality;
 }