You are creating a paint program such as Paint. You want to be able to undo / red brush strokes. How do you implement this?
Optimize speed and memory.
Use quadtree to record the previous state of the changed part of the canvas. When canceling, replace the canvas state from the quadrant.
. , . , , , . .
.
Source: https://habr.com/ru/post/1716266/More articles:C #, Set datagridview column format after setting data source - c #How can I use django with JSONP to download content from another site? - jsonHow can I use RAW sockets in Ruby? - ruby | fooobar.comHide taskbar using C # - securityConnect WCF using anonymous methods - c #Ant Copy task: failed to copy due to java.io.FileNotFoundException - javaDetect when UITextView has completed scrolling - iphoneCan a Windows Forms control have a Time Time property? - c #Какова точка использования уникального индекса в столбце Guid - sqlGet MySQL cell in shell script - mysqlAll Articles