 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Ma Xiaoguang Guest
|
Posted: Wed Aug 10, 2005 8:05 am Post subject: History Function in Photoshop? |
|
|
Dear ladies and gentlemen,
I am just curious about the History function which was in Photoshop.
Photoshop could saves every operation from the user in the History dialog. I
think that it could have a list in Photoshop to save the data of every
operation on it. The wonderful thing is that user could deletes any step
they made in the History dialog, the Photoshop will then composite the
remaining operating steps to produce a proper result. So cool, isn't it? How
can the Photoshop achieve this? What is the principle about the History
function? The History function is better than the Undo/Redo function, as far
as I am concern. I think that the technique of the History function is very
hard, maybe I cannot to understand and handle it. But I still expect someone
who could explain this technique to me.
Thank you very much!
Best regards.
Xiaoguang
|
|
| Back to top |
|
 |
Lars Frische Guest
|
Posted: Wed Aug 10, 2005 2:50 pm Post subject: Re: History Function in Photoshop? |
|
|
Ma Xiaoguang wrote:
| Quote: | Dear ladies and gentlemen,
I am just curious about the History function which was in Photoshop.
Photoshop could saves every operation from the user in the History dialog. I
think that it could have a list in Photoshop to save the data of every
operation on it. The wonderful thing is that user could deletes any step
they made in the History dialog, the Photoshop will then composite the
remaining operating steps to produce a proper result. So cool, isn't it? How
can the Photoshop achieve this? What is the principle about the History
function? The History function is better than the Undo/Redo function, as far
as I am concern. I think that the technique of the History function is very
hard, maybe I cannot to understand and handle it. But I still expect someone
who could explain this technique to me.
Thank you very much!
Best regards.
Xiaoguang
Hello Xiaoguang, |
Usually this is being done using the Command Pattern. It is describe in
the Gof pattern book:
Gamma, E., Helm, R., Johnson, R., Vlissides, J.
Design Patterns: Elements of Reusable Object-Oriented Software
Addison Wesley, 1995
You should be able to find a delphi implementation using google.
Cheers
Lars.
--
Lars Frische
Software Developer
Test Maschinen Technik GmbH
Germany
===
http://www.eddyMax.com
http://www.kontrolltechnik.com
|
|
| Back to top |
|
 |
Ma Xiaoguang Guest
|
Posted: Thu Aug 11, 2005 8:02 am Post subject: Re: History Function in Photoshop? |
|
|
Hello MikKi,
Thanks for your help. This technique is really complicated. As you said,
we should to standardize our code, it is a challenge to me. Thanks for your
explanation for the question.
Best regards.
Xiaoguang
"Miklós Kiss" <kissmiklos (AT) freemail (DOT) hu> wrote
| Quote: |
Hello,
I am just curious about the History function which was in Photoshop.
Photoshop could saves every operation from the user in the History
dialog. I
think that it could have a list in Photoshop to save the data of every
operation on it. The wonderful thing is that user could deletes any step
they made in the History dialog, the Photoshop will then composite the
remaining operating steps to produce a proper result. So cool, isn't it?
How
can the Photoshop achieve this? What is the principle about the History
function? The History function is better than the Undo/Redo function, as
far
as I am concern. I think that the technique of the History function is
very
hard, maybe I cannot to understand and handle it. But I still expect
someone
who could explain this technique to me.
I never did such thing but if I had to do it I would do the followings:
- first: every operation should have an own structure (class?)
which describes exactly what modification on the image are
needed
- second: I would create "reference images" (at least one with
the starting image)
- third: store the list of modifications between reference
images maintaining their original order
So when doing this you can always recreate the resulting image
from the first reference image by applying the modifications in
the *exact* order they were made. Also operation order can be
changed and operations can be added/removed too.
Note that the reference images are not needed (except for the
first one) but if they are present they can speed up the
recreation of the result image (e.g.: you have 6 operations and
2 reference images: one for the start and one created after the
3rd operation. So if you delete the 5th operation you only have
to redo the 4th and 6th operations from the 2nd reference image.
However if you only have the starting image you must redo 5
operations which can last very long).
But be warned: creating too much reference images will eat up
memory if images are "big".
Regards,
MikKi
|
|
|
| Back to top |
|
 |
Ma Xiaoguang Guest
|
Posted: Thu Aug 11, 2005 8:05 am Post subject: Re: History Function in Photoshop? |
|
|
Hello Lars,
Thanks for your help.
Best regards.
Xiaoguang
"Lars Frische" <nospam (AT) eddymax (DOT) com> wrote
| Quote: | Ma Xiaoguang wrote:
Dear ladies and gentlemen,
I am just curious about the History function which was in Photoshop.
Photoshop could saves every operation from the user in the History
dialog. I
think that it could have a list in Photoshop to save the data of every
operation on it. The wonderful thing is that user could deletes any step
they made in the History dialog, the Photoshop will then composite the
remaining operating steps to produce a proper result. So cool, isn't it?
How
can the Photoshop achieve this? What is the principle about the History
function? The History function is better than the Undo/Redo function, as
far
as I am concern. I think that the technique of the History function is
very
hard, maybe I cannot to understand and handle it. But I still expect
someone
who could explain this technique to me.
Thank you very much!
Best regards.
Xiaoguang
Hello Xiaoguang,
Usually this is being done using the Command Pattern. It is describe in
the Gof pattern book:
Gamma, E., Helm, R., Johnson, R., Vlissides, J.
Design Patterns: Elements of Reusable Object-Oriented Software
Addison Wesley, 1995
You should be able to find a delphi implementation using google.
Cheers
Lars.
--
Lars Frische
Software Developer
Test Maschinen Technik GmbH
Germany
===
http://www.eddyMax.com
http://www.kontrolltechnik.com
|
|
|
| Back to top |
|
 |
Mr. X Guest
|
Posted: Thu Aug 11, 2005 1:48 pm Post subject: Re: History Function in Photoshop? |
|
|
Hi Ma
The history is actually a list of undo and redo in a way.
Yes, if you want to go to a particular index in the history list, you can
just call the state of your image at that index.
If you want to use re-usable objects then implementing this would be quite
complex.
"Ma Xiaoguang" <maxiaoguang10000 (AT) sina (DOT) com> wrote
| Quote: | Dear ladies and gentlemen,
I am just curious about the History function which was in Photoshop.
Photoshop could saves every operation from the user in the History dialog.
I
think that it could have a list in Photoshop to save the data of every
operation on it. The wonderful thing is that user could deletes any step
they made in the History dialog, the Photoshop will then composite the
remaining operating steps to produce a proper result. So cool, isn't it?
How
can the Photoshop achieve this? What is the principle about the History
function? The History function is better than the Undo/Redo function, as
far
as I am concern. I think that the technique of the History function is
very
hard, maybe I cannot to understand and handle it. But I still expect
someone
who could explain this technique to me.
Thank you very much!
Best regards.
Xiaoguang
|
|
|
| Back to top |
|
 |
Ma Xiaoguang Guest
|
Posted: Fri Aug 12, 2005 7:52 am Post subject: Re: History Function in Photoshop? |
|
|
Hello Mr. X,
Thanks for your help. Yes, this is really complicated task.
Best regards.
Xiaoguang
"Mr. X" <no (AT) mail (DOT) here> wrote
| Quote: | Hi Ma
The history is actually a list of undo and redo in a way.
Yes, if you want to go to a particular index in the history list, you can
just call the state of your image at that index.
If you want to use re-usable objects then implementing this would be quite
complex.
"Ma Xiaoguang" <maxiaoguang10000 (AT) sina (DOT) com> wrote in message
news:42f9b525 (AT) newsgroups (DOT) borland.com...
Dear ladies and gentlemen,
I am just curious about the History function which was in Photoshop.
Photoshop could saves every operation from the user in the History
dialog.
I
think that it could have a list in Photoshop to save the data of every
operation on it. The wonderful thing is that user could deletes any step
they made in the History dialog, the Photoshop will then composite the
remaining operating steps to produce a proper result. So cool, isn't it?
How
can the Photoshop achieve this? What is the principle about the History
function? The History function is better than the Undo/Redo function, as
far
as I am concern. I think that the technique of the History function is
very
hard, maybe I cannot to understand and handle it. But I still expect
someone
who could explain this technique to me.
Thank you very much!
Best regards.
Xiaoguang
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|