Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Panoramic photo

Status
Not open for further replies.

wkang2009

Programmer
Dec 7, 2009
1
CN
I want to display a large photo of the panorama (such as 1872*2816) in a canvas which size is much smaller(such as 500*500).on winows(Win2003/WinXP/Win2000 )built-in image reader, we can see a large photo's panorama via a smaller window,and no use scroll bar.This is what I want to achieve the function.Can somebody help me?Any suggestions will be great appreciated.


package require Img
frame .b
image create photo MyMap -file DSC02537.JPG
canvas .b.c -highlightthickness 0 -width 400 -height 400
.b.c create image 1 1 -anchor nw -image MyMap -tag mymap
.b.c configure -scrollregion [.b.c bbox mymap]
pack .b .b.c -fill both -expand 1
 
I don't understand. You don't want to scroll, so does that mean you only want to display the, say, upper-left 500x500?

_________________
Bob Rashkin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top