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
|
|
|
|
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.
|
|
|
|
Rank: Member
Groups: Member
Joined: 3/6/2005(UTC) Posts: 5
|
|
|
|
|
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.