Re: Paint Undo?



In article <463b1262$0$21835$db0fefd9@xxxxxxxxxxxxxx>,
Rob Kendrick <nntp@xxxxxxxx> wrote:
You can do it quite memory efficiently, too. You don't need to store
the entire bitmap; only what has changed. Also, you can quite easily
reduce the undo granularity (say, to when the tool changes, rather than
when a pixel is modified) and still have a useful function that doesn't
rapidly gobble memory.

I'd bet that animated GIFs store differences between frames quite
efficiently which is much the same as you'd do for undo in Paint (with even
more scope for optimisation). You just need to keep some compressed info
about the diffs after each action. It's not rocket science and as Paint is
mostly only useful for icon-sized graphics, it probably wouldn't use up
enough memory for you to notice the undo buffering.

Steve

--
Steve Revill @ Home
Note: All opinions expressed herein are my own.
.



Relevant Pages

  • Re: Paint Undo?
    ... 'restore' is the wrong word since as you can't actually reverse the ... labelled 'Undo' button. ... Manifestly!CFSI ... does not behave like!Paint as you can go back a step without restarting ...
    (comp.sys.acorn.apps)
  • Re: Paint Undo?
    ... set up lots of processing options in CFSI ... How do I "undo" back to my previous set of options? ... Reprocess has nothing to do with it. ... I personally think undo in Paint would be of great ...
    (comp.sys.acorn.apps)
  • Re: Paint Undo?
    ... Steve Potts wrote: ... Dave Symes wrote: ... !Paint was never aimed at that level. ... Even RO Draw has Undo and Redo, so I don't know why!Paint doesn't have ...
    (comp.sys.acorn.apps)
  • Re: Paint Undo?
    ... I personally think undo in Paint would be of great ... It is also so that not many folk design icons for a living. ... The only thing I do use Paint for is resizing very large images ...
    (comp.sys.acorn.apps)
  • Re: Paint Undo?
    ... How would you implement an "undo" function in a bitmap editor? ... reduce the undo granularity (say, to when the tool changes, rather than ... rapidly gobble memory. ...
    (comp.sys.acorn.apps)