/// <summary> /// Returns this layer's image for this tank. Will be called from multiple threads in parallel. The result may be any size. Return /// a writable image if it may be modified directly, or mark it as read-only otherwise. /// </summary> public abstract BitmapBase Draw(Tank tank);
/// <summary> /// Applies the effect to the specified layer. Returns the resulting image. If the layer is writable, may modify it /// directly and return the same instance, instead of creating a new one. /// </summary> public abstract BitmapBase Apply(Tank tank, BitmapBase layer);
public D.Color GetColorGdi(Tank tank) { return(GetColorWpf(tank).ToColorGdi()); }