示例#1
0
 protected override void Initialize()
 {
     foreach (var replacement in Replacements)
     {
         RegisterAspect(replacement.Key, name => {
             var v = Replacements.GetValueOrDefault(name);
             return(new PaintShopOverrideTint {
                 Colors = Colors.DrawingColors,
                 Alpha = new ValueAdjustment((float)Alpha, 1f),
                 Source = v?.Source,
                 Mask = v?.Mask,
                 Overlay = v?.Overlay
             });
         });
     }
 }