Command Pattern for undo/redo in paint application

后端 未结 2 1264
时光取名叫无心
时光取名叫无心 2021-02-06 14:47

I would like to implement undo/redo in a small paint application. It seems the Command Pattern fits the use nicely, but I am unsure how to best implement it.

As I unders

2条回答
  •  我寻月下人不归
    2021-02-06 15:24

    Maybe, it would be better not to store copy of entire image in command, but store only copy of area, which is changing by command. Of course, this is not a panacea

提交回复
热议问题