• Post Reply Bookmark Topic Watch Topic
  • New Topic

Panel --

 
dejie lin
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
3 urgent questions, do help pls
first question:
There is a large image in a scrollPane, how can i know which part is displayed to user? for example, the part from pixel(10,10) to (610,810)is shown in screen, how can i know it??
second question:
if user is watching a "flower" in the center of the panel, once user presses the zoom out button, the whole image will be amplified. How can i make sure the "flower" still be shown in the center, won't go to right-down coner of the panel.
third question:
If i wanna the part from pixel(400,400) to (500,500) to be in the center of the panel, how can it do it??

thanks in advance
dejie
thanks in advacne
dejie
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!