zoom

How do you implement position-sensitive zooming inside a JScrollPane?

I am trying to implement position-sensitive zooming inside a JScrollPane. The JScrollPane contains a component with a customized 'paint' that will draw itself inside whatever space it is allocated - so zooming is as easy as using a MouseWheelListener that resizes the inner component as required. But I also want zooming into (or out of) ...

jQuery - running a function on a new image

I'm a jQuery novice, so the answer to this may be quite simple: I have an image, and I would like to do several things with it. When a user clicks on a 'Zoom' icon, I'm running the 'imagetool' plugin (http://code.google.com/p/jquery-imagetool/) to load a larger version of the image. The plugin creates a new div around the image and allo...

Zooming an element and its contents-- an alternative to CSS3's zoom property?

Is there a cross-browser method to emulate CSS3's zoom property? I know how to zoom images and text separately, but cannot seem to keep everything aligned. One solution might be to read the computed styles of the element and its children, convert all measures to px, multiply them by some factor, and then generate HTML/CSS with these ne...

Setting Zoom on Windows Mobile device with IAMCameraControl::Set()

Hi, I am developing an application for video capture and I would like to implement zoom functionality. Working with DirectShow I came across IAMCameraControlInterface. It has a method ::Set(), which should be used for setting several camera parameters. However I played around and I couldn't do anything with it. Then I tried to call ::...

PictureBoxSizeMode.Zoom - What's the zoom factor?

I have a PictureBox (its SizeMode property set to Zoom) containing an image, and both may vary in size. Since the user has to interact with the image directly, I need to be able to convert the PictureBox click coordinates to image coordinates. What I have done so far, is compare the aspect ratio of the PictureBox to the aspect ratio of...

I want pan and zoom functionality (like a MapView) on my own map image

How can I get my own image to be able to pan and zoom (like a MapView)? ...

How to plot large data vectors accurately at all zoom levels in real time?

I have large data sets (10 Hz data, so 864k points per 24 Hours) which I need to plot in real time. The idea is the user can zoom and pan into highly detailed scatter plots. The data is not very continuous and there are spikes. Since the data set is so large, I can't plot every point each time the plot refreshes. But I also can't jus...

How can I tell when a window in Vista has finished its "zoom" animation?

When running under Vista's Aero theme, is there a way to tell that a window has finished its creation animation? When doing automation, some of the components are not responsive until this animation has finished. ...

disable the CTRL/Wheel zoom effect at runtime

How do you disable the ctrl/wheel zoom effect with css or javascript on certain elements. I create a menu bar that gets distorted when the zoom effect is applied. I would like to disable it for just certain elements. ...

How does zooming, panning and rotating work?

Using OpenGL I'm attempting to draw a primitive map of my campus. Can anyone explain to me how panning, zooming and rotating is usually implemented? For example, with panning and zooming, is that simply me adjusting my viewport? So I plot and draw all my lines that compose my map, and then as the user clicks and drags it adjusts my vi...

Drawing Application Zoom Concept

I'm building an application on top of canvas, it consists of a simple DOM that gets redrawn on every mouse move (yes, it is necessary), for performance issues not every part part gets redrawn only what is needed. The app is working well but I'd like to add the zoom feature, the way I see it, it can be done in three different ways: 1 - ...

Impossible to achieve a Zoom in/out with webcam using actionscript?

Hi I am guessing this is not possible based on the fact that my Google search did not yield anything! So asking the stackoverflow talent, is it possible for me to get webcams to zoom in and out providing the webcam has zoom capability? I am guessing no? This is for an image capture project that I am doing. Thanks all ...

how to revert glScalef() ?

Im using glScalef() for zooming in my program, now when i revert it back to the original size with code: glScalef(1.0f/ZOOM, 1.0f/ZOOM, 1); It doesnt work very well in high zooms... (maybe because of the lost decimals?) How i can revert it back perfectly to the original size without any calculations like above? ...

how to use the key board as command to zoom in opengl?

can anyone tell me how? i've never done this before so i'm not sure as what library to use and how to call the command that a key pressed as a instruction rather than input.. i'm writing a OpenGL program in Visio C++ ...

How to use Android Map to zoom with hand gesture (iphone like)

How do you use the Android API to zoom in and out maps with the 2 finger gestures like iPhone? ...

How can I display borders for geometries with UMN-Mapserver only when zoomed in a lot?

I have a map-file for UMN, that displays a layer of vectors, each geometry with different colors depending on their attributes. That works fine. I also want to add borders around each geometry. That's no problem, but on the view showing the complete area, the borders dominate the image, because each geometry has only a few pixels. So I w...

What's wrong with this image panning algorithm?

In response to this question about zooming and panning in WPF I made the suggestion to use a ScaleTransform and update the RenderTransform origin in the MouseMove event. This works but I'm not happy with the fact that the panning movement does not quite match the mouse. I can see what the problem with this algorithm is, but the correct i...

Implementing zoom controls in MFC

I am working on a 'print preview' facility to show an overview of a slide with rectangular arrays of sample spots on it. The slides typically measure 25 x 75 mm and the spot samples are typically 0.1 mm in diameter. There is usually a 2mm gap around the perimeter of the slide where no spots are printed. The distance between spots (pit...

Web: solution for image rotate and zoom

I have a web page which displays a large image, for example a page from a magazine. I have no control over the image size or orientation. It's possible that the image may need to be rotated by the user to orient it correctly. Are there any Javascript or Flash solutions that will allow someone to rotate and zoom a given image? Ideally I'...

zooming in silverlight

Hi, I have created a 3D structure(basically an image) dynamically using kit3D.However,I wanted to zoom only a small segment of the whole structure.My entire image is loaded altogather at a time,so I am not considering using deep zoom. Is there anyway where I can zoom only a part of a dynamically generated image in silverlight?? Thank yo...