Support Center

How to undo the changes on image back to original setting

Jeff Nov 13, 2011 04:55AM EST

Hi,

May i know how to undo the image setting back to it's original setting ?

For example, i changed the brightness to lighter, then i wanted to undo it and set it back to original brightness, i try brightness( 0 ) but it gets to another brightness instead of original setting.

Please give me some guide on this.

Thank you
Jeff

1 Data Techniques Response

Up 0 Rated Down
DTI Support  Data Techniques Employee Nov 14, 2011 08:47AM EST

Hello,

The best way to implement an undo is to use a 2nd copy of the image control to save a copy of the image prior to the modifications that you may wish to undo. You can copy the image from the one control to the other using the hImage property. So for instance:

undoCtrl.hImage = mainCtrl.hImage
' Do something to the mainCtrl imageman control
' If you decide to undo it then just
mainCtrl.hImage = undoCtrl.hImage
' Now the change has been undone....

This question is closed to new answers.

Contact Us