Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
mister  
#1 Posted : Tuesday, June 7, 2005 2:22:00 PM(UTC)
mister

Rank: Member

Groups: Member
Joined: 3/6/2005(UTC)
Posts: 5

I wonder how I can zoom in a selected area programaticaly. I know how to zoom in but I also would like the area to be the center.

Regards

Andrew  
#2 Posted : Wednesday, June 8, 2005 12:35:00 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 876

Thanks: 2 times
Was thanked: 27 time(s) in 27 post(s)
You can programmatically scroll the BitmapViewer using HScrollPos and VScrollPos properties. So you should just analyze the selection dimensions (SelectionWidth and SelectionHeight) to calculate zoom ratio and the selection position (SelectionLeft and SelectionTop) to calculate where to scroll.

Hope this helps.

mister  
#3 Posted : Wednesday, June 8, 2005 3:41:00 PM(UTC)
mister

Rank: Member

Groups: Member
Joined: 3/6/2005(UTC)
Posts: 5

That worked well, tnx!
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.