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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Restore scroll values for TImageEnVect

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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