public override void Apply(IEditPixelDataContext context) { if (!AppliesTo(context)) return; foreach (var edit in Edits) edit.Apply(context); }
public override void Apply(IEditPixelDataContext context) { if (!AppliesTo(context)) { return; } foreach (var edit in Edits) { edit.Apply(context); } }
public override void Apply(IEditPixelDataContext context) { if (context.Excluded || !AppliesTo(context)) return; foreach (var edit in Edits) { edit.Apply(context); if (context.Excluded) return; } }
public virtual bool AppliesTo(IEditPixelDataContext context) { return(Condition == null || Condition.IsMatch(context.DataSet)); }
/// <summary> /// Applies edits to pixel data. /// </summary> /// <remarks>It is expected that all input pixel data contains no embedded overlays, /// is right aligned, and is "normalized" such that it is properly represented (numerically) /// using the correct corresponding value type (e.g. byte, sbyte, ushort, short).</remarks> public abstract void Apply(IEditPixelDataContext context);
public virtual bool AppliesTo(IEditPixelDataContext context) { return Condition == null || Condition.IsMatch(context.DataSet); }