T O P I C R E V I E W |
AndyColmes |
Posted - May 04 2014 : 12:15:22 I need to be able to restore the scroll positions of a TImageEnVect when I replace the image. At the moment, the image view goes to the top after the image is replaced. How would I do this efficiently?
Thanks in advance.
|
4 L A T E S T R E P L I E S (Newest First) |
w2m |
Posted - May 04 2014 : 15:29:35 Are you resampling, resizing or cropping the new image before it is loaded? Is the new image the same size as the image being replaced?
I guess you will have to post some code to show what you are trying to do as I have no idea what you are really trying to accomplish.
William Miller Adirondack Software & Graphics Email: w2m@frontiernet.net EBook: http://www.imageen.com/ebook/ Apprehend: http://www.frontiernet.net/~w2m/index.html Custom Commercial ImageEn Development |
AndyColmes |
Posted - May 04 2014 : 15:26:58 My error. It does work like a charm. Thanks William. |
AndyColmes |
Posted - May 04 2014 : 15:07:17 Thanks William, but somehow it doesn't seem to work. It still goes back up to the top. |
w2m |
Posted - May 04 2014 : 13:17:57 Try saving the ImageEnVect1.ViewX and ImageEnVect1.ViewY values to a variable and then reset the view values after you replace the image.
William Miller Adirondack Software & Graphics Email: w2m@frontiernet.net EBook: http://www.imageen.com/ebook/ Apprehend: http://www.frontiernet.net/~w2m/index.html Custom Commercial ImageEn Development |