ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Restore scroll values for TImageEnVect
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

AndyColmes

USA
351 Posts

Posted - May 04 2014 :  12:15:22  Show Profile  Reply
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.

w2m

USA
1990 Posts

Posted - May 04 2014 :  13:17:57  Show Profile  Reply
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
Go to Top of Page

AndyColmes

USA
351 Posts

Posted - May 04 2014 :  15:07:17  Show Profile  Reply
Thanks William, but somehow it doesn't seem to work. It still goes back up to the top.
Go to Top of Page

AndyColmes

USA
351 Posts

Posted - May 04 2014 :  15:26:58  Show Profile  Reply
My error. It does work like a charm. Thanks William.
Go to Top of Page

w2m

USA
1990 Posts

Posted - May 04 2014 :  15:29:35  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: