zoom

Zoom in/out gesture UIView

Hi, i've been trying to capture gesture zoom in/out in a UIView. Code: NSSet *allTouches = [event allTouches]; NSArray *twoTouches = [allTouches allObjects]; UITouch *first = [twoTouches objectAtIndex:0]; UITouch *second = [twoTouches objectAtIndex:1]; CGPoint firstPoint = [first locationInView:self]; CGPoint secondPoint = [second lo...

Forms control that allows zoom, pan AND POI

Hello, For my phD project I need to do microscopy imaging. I cooked up an application using C#/winforms/GDI that allows me to display my images, zoom/pan them and display a ruler. However, the thing is quite buggy, although usable... What I need now is some kind of system to store a list of POIs (points of interest) based on user inte...

Disabling page zoom in IE7 (jQuery/JS)

I know this is not the best thing to do in view of accessibility, but I have a genuine need to disable the user from zooming onto the page using CTRL+ in IE7. I got it working for the other browsers the following way, but IE7 seems to ignore the "return false": $(window).keydown(function (e) { alert('key is down'); // this fire...

Easy-to-use GUI that is zoomable and pannable?

Hello: I am looking for a GUI toolkit that is easy to use and cross-platform. Another major requirement of the GUI is that it should support zoom and pan. For example, I should be able to zoom in on a picture and enlarge buttons. Something like this: http://eaglemode.sourceforge.net/video.html But it should have Windows support also...

Javascript / jQuery image zoom plugin

I need to display an image in a fixed size div. Under the div must be some control, like a cursor bar, which sets the resolution of the displayed image. I don't mind much writing the thing, but I thought it might already exist. How come I can't find such a thing ? (I am not interested in things like jQZoom nor zoomimage which do not le...

Flash zooms in when users zooms in browser

I have a feature on my site that is having issues on browsers that have the page zoomed in. When someone that wants to see the text larger zooms in the page with the browser, it zooms in the flash instead of resizing it, so it makes it unusable. Is there a way to keep this from happening, or is it just a bug with the browsers? ...

Catch browser's "zoom" event in JavaScript

Is it possible to detect, using JavaScript, when the user changes the zoom in a page? I simply want to catch a "zoom" event and respond to it (similar to window.onresize event). Thanks. ...

Silverlight 3 - ScaleTransform or other method to zoom in a Canvas?

I need to be able to zoom in and out of a Canvas using the mousewheel. I have successfully set up the mouse wheel handlers and am currently using a ScaleTransform to apply the zoom; however, the scaling is not done in an "intuitive" way. I'm trying to accomplish the same style of "zooming" as you can see in MultiScaleImage, Google Ma...

How to Implement an OpenGL Zoom Extents Function

I have an OpenGL application which implements navigation functions such as Orbit, Walk, Pan, Rotate, etc. for navigating a 3D environment. All this works flawlessly and is fairly straighforward to set up using gluPerspective and gluLookAt. glMatrixMode GL_PROJECTION glLoadIdentity gluPerspective m_ViewAngle, m_AspectRatio, m_Clip...

Changing the browser zoom level

I have need to create 2 buttons on my site that would change the browser zoom level (+) (-). I'm requesting browser zoom and not css zoom because of image size and layout issues. Well, is this even possible? I've heard conflicting reports... Thanks! ...

iPhone Drawing in tiles - Keeping track of original position of image on them

Hello guys. I'm trying to draw images on tiles based on a point that is fine only for the whole width and height of this other image. I'm using the Tiling example from ScrollViewSuite. I can't seem to figure out how to translate this point to the tiles coordinates when zooming in and zooming out. What I wanted is to keep the position of ...

Centering page when zoomed in IE7

I am building a website for a client who wants their page to zoom perfectly in IE7. I have finally managed to get around most of the bugs, but one. When you zoom in on the page, it centers fine, but then when you go to another page, the page renders and displays the top left of the page. I need to make it render centered. I know it is p...

Zoom in NSImageView

I have an app that scales images to fit inside my implementation of NSImageView. It uses the NSImage drawRect call to write the image into the space which can resize to whatever the user wants. This works fine but I also need to implement a zoom in feature that will zoom in centered on the spot that the user clicks on in the scaled image...

Auto sizing zoom on an image in .NET

Hello, I'm considering a personal learning project. Using .NET(preferably VB) I want to build a simple desktop app that's only function is to display comics, like CDisplay, but with more advanced navigation. I want to be able zoom in by clicking on certain areas of an image, individual panels for instance, and have the zoom area automa...

MKMapView Zoom and Region

I'm familiar with using google maps javascript api. Recently I started using mapKit framework for an iphone project, but I'm having a hard time to figure out zooming and setting a region on map. In google maps api I used to use integer zoom levels like 8, 9, 10 along with straightforward function setZoom(). The only equivalent method I ...

Image in UIScrollView moves offscreen before while zooming

I am working on a photo gallery iPhone app. Approach is fairly inspired from the ScrollingMadness code available on github. I have a scroll view which holds all my image views when in paging mode. When user zooms an image using pinch out gesture, I remove all the image views but the current one - and set the content offset to 0,0 (obvi...

UIScrollView minimum scale question

I'm having a problem with the UIScrollView when doing zooming operations, which seems to be very simple but I didn't figured out how to solve it. I want an UIScrollView no to exceed the bounds of the content view when zooming out. By reading the Reference Guide i found out the following properties: bounces (A Boolean value that contro...

Efficient Zoom At C#

Hi to all, To zoom images in and out, there is a possible way to resize the pictureBox and showing image in strechmode. Although I can not use it efficiently becauce in general over 8x it gives storage error [think that a pictureBox has the Size(32k, 32k) it needs over 1GB memory ! Is there a special method, or should I zoom only the ...

Loupe Magnification with White Text & Clear Background on Iphone

You guys helped so much with my last question, I figured I'd give you a shot at another. I have written an app with a theme that uses a dark blue glassy background and white / gray text and labels. The textfields in my app have clearcolor backgrounds and white texts and everything shows up very well. My only concern is that when you hold...

Zooming in on two ImageViews at once

So, I have two UIImageViews within a single UIScrollView: a map of the united states, and a marker (mostly transparent, of course). I need zooming to be a feature here, but within the viewForZoomingInScrollView method that I need to overwrite, I can only return a single UIImageView. Therefore, when I zoom, only one or the other will prop...