public override void Load(FillPattern pattern) { if (pattern is Solid s) { Color = s.Color; } }
public override void Load(FillPattern pattern) { image?.Dispose(); if (pattern is Texture t) { image = t.image; } }
//TODO:待完成 public override void Load(FillPattern pattern) { var lg = pattern as LinearGradient; //TODO:待完成 }
public override void Load(FillPattern pattern) { return; }
public abstract void Load(FillPattern pattern);