zooming

Adding Zooming in and out with a Tkinter Canvas Widget?

谁说我不能喝 提交于 2019-11-27 19:31:52
How would I add zooming in and out to the following script, i'd like to bind it to the mousewheel. If you're testing this script on linux don't forget to change the MouseWheel event to Button-4 and Button-5. from Tkinter import * import Image, ImageTk class GUI: def __init__(self,root): frame = Frame(root, bd=2, relief=SUNKEN) frame.grid_rowconfigure(0, weight=1) frame.grid_columnconfigure(0, weight=1) xscrollbar = Scrollbar(frame, orient=HORIZONTAL) xscrollbar.grid(row=1, column=0, sticky=E+W) yscrollbar = Scrollbar(frame) yscrollbar.grid(row=0, column=1, sticky=N+S) self.canvas = Canvas

Zooming bar-graph with d3.js

跟風遠走 提交于 2019-11-27 18:07:28
问题 I am trying to create a bar graph with a time scale where its possible to zoom into any time period. I was able to create the zooming functionality for my x-axis(time scale) however my data (in this case rects) doesn't zoom along with my axis. Here is a simplified version of my graph: http://jsfiddle.net/gorkem/Mf457/5/embedded/result/ As you can see I can zoom in to my x-axis but the bars do not zoom along. and here is the jfiddle link: http://jsfiddle.net/gorkem/Mf457/6/ var y = d3.scale

How to find absolute position of click while zoomed in

无人久伴 提交于 2019-11-27 11:14:42
Please see each section below for a description of my problem described in three separate ways. Hopefully should help people to answer. Problem: How do you find a pair of coordinate expressed in canvas/userspace when you only have the coordinate expressed in terms of a zoomed image, given the original scale point & scale factor? Problem in practice: I'm currently trying to replicate the zoom functionality used in apps such as the gallery / maps, when you can pinch to zoom/zoom out with the zoom moving towards the midpoint of the pinch. On down I save the centre point of the zoom (which is in X

How to implement zoom effect for image view in android?

醉酒当歌 提交于 2019-11-27 10:36:37
I have to implement image zooming, I have tried with so many codes.But i didnt get full idea of gesture events. I want to implement when we apply double tap, image will be zooming according to the touch place(event x and y).I have to implement only zooming at this time no pan.Can any body suggest me ? Edit: Actually i have implemented that viewflipper with images, if i try to apply pan and zoom effect, sometimes images will be changed. I want to implement zoom effect for where the user is clicked . Give me some idea of that.... star18bit Lazy man can use this lib , Just import inside your

UIScrollView ImageView with pins on top

风流意气都作罢 提交于 2019-11-27 10:11:48
问题 I have a UIScrollView which has a UIImageView . I want to show pins on this imageView . When I add pins as subviews of the ImageView , everything is great except for when you zoom the scale transform happens on the pins also. I don't want this behavior and want my pins to stay the same. So I choose to add the Pins to another view which sits on top of the ImageView and is also a subview of the UIScrollView . The idea here if you will imagine is to have a layer which hovers over the map and won

Set a max zoom level on LatLngBounds builder

落花浮王杯 提交于 2019-11-27 10:09:11
问题 I haven't found an answer in my search, there are a few answers on SO but they didn't work for me. I have 2 markers on the map and I am using LatLngBounds builder in order to let the camera zoom to the right zoom level to include them both. Everything works as expected aside one thing, when the 2 markers are really close to each other, the map is very very zoomed and well, it doesn't make any sense to have this level of zooming. LatLngBounds.Builder builder = new LatLngBounds.Builder();

resize all subview in scrollViewDidZoom

一个人想着一个人 提交于 2019-11-27 06:31:01
问题 Below is my screen design. . I want Zoom in/out in **mainView**. mainView Width & Height is 300. To Zoom in/out i have implement the below method and its working fine with this. - (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView { return mainView; } Everything is fine up to this. I have set scroll.minimumZoomScale=1 and scroll.maximumZoomScale=5 . During Zoom in time mainView Frame increase depend on **scrollView.zoomScale** and i have check - (void)scrollViewDidZoom:

Borders disappear in Chrome when I zoom in

心不动则不痛 提交于 2019-11-27 05:23:42
I have this really simple form: http://jsfiddle.net/TKb6M/91/ . Sometimes, when I zoom in or out using Chrome, the input borders disappear. For example, when I zoom to 90% I get: Naturally, your mileage may vary. In case you're wondering about those <span> tags, I added them following the recommendation at How do I make an input element occupy all remaining horizontal space? . Is there a problem with my CSS or is this a Chrome bug? It seems to work fine on Firefox. What can I do to avoid this behavior? Thanks. vals You are forcing Chrome to do subpixel calculation, and this usually has strange

Adding Zooming in and out with a Tkinter Canvas Widget?

谁都会走 提交于 2019-11-27 04:22:31
问题 How would I add zooming in and out to the following script, i'd like to bind it to the mousewheel. If you're testing this script on linux don't forget to change the MouseWheel event to Button-4 and Button-5. from Tkinter import * import Image, ImageTk class GUI: def __init__(self,root): frame = Frame(root, bd=2, relief=SUNKEN) frame.grid_rowconfigure(0, weight=1) frame.grid_columnconfigure(0, weight=1) xscrollbar = Scrollbar(frame, orient=HORIZONTAL) xscrollbar.grid(row=1, column=0, sticky=E

How to implement zoom effect for image view in android?

安稳与你 提交于 2019-11-26 17:57:25
问题 I have to implement image zooming, I have tried with so many codes.But i didnt get full idea of gesture events. I want to implement when we apply double tap, image will be zooming according to the touch place(event x and y).I have to implement only zooming at this time no pan.Can any body suggest me ? Edit: Actually i have implemented that viewflipper with images, if i try to apply pan and zoom effect, sometimes images will be changed. I want to implement zoom effect for where the user is