I am making a paint program where i can make Rectangle/Ellipse. In that program i can move/resize them but also save them.
My problem is now that i need to make a visitor pattern(Resize/Move and save) But I don't know where i should start.
These are the method i use at the moment:
public abstract void ResizeShape(PosSizableRect posSizableRect, float lastX, float lastY, float newX, float newY);
public abstract void MoveShape(int x, int y);
private void Write(List<Shape> shapes, StreamWriter streamWriter, string tabs = "")
sorry can't give you pictures because of my reputation...
Aucun commentaire:
Enregistrer un commentaire