I am using XF and sfchart and I want to detect the zooming direction and set the zoom mode based on it, I mean if the user starts zooming vertically I want to zoom mode to be set on Y axis and when they zoom horizontally I want to set it on X axis. Is there anyway to detect the zoom direction?
Related
I are working on a coloring game for kids.I have used bucket fill and it working fine but the problem is coloring image contains some small areas which are impossible to fill by touching on it. I wanted to Implement zoom in and zoom out so that kids can zoom in to small area fill it and zoom out. I have tried scaling rendertexture but it scale around anchor point. Is there a way that I can scale around the touch location ?
Scaling will always be done around the anchor point. You have to reposition your RenderTexture, after scaling, so your touch location remains centered.
I added to a Matlab GUI Pan and Zoom toolbars so I can move over the image presented in the axes.
After I mark a point (and adding coordinate text) and use the pan and/or zoom the marked text is shown outside the image Axes all over the GUI (it move as I pan and zoom).
The Axes, pan and zoom toolbar and the ui.figure 'Clipping' property is set to on.
There is no code as I use the toolbar and therefore how can it be solve?
Image example (White represent the outside of the Axes):
I try displaying image with non standard aspect ratio (width>>height) in my GUI.
But when I zoom-in the image is clipped to the original axes position. I've managed to solve this problem by setting the 'Clipping' property to 'off'. But now for some reason the pan and zoom tools are only active while the mouse hovers over the initial position of the image (the position it had before I zoomed in).
Here is a piece of code for demonstration (I'm using Matlab 2011a, but also noticed the problem in other versions):
I = repmat(imread('cameraman.tif'), [1 20]);
figure,
h=imshow(I);
set(h,'Clipping','off')
(Just run those lines and try zooming in once or twice. The zoom/pan tools will only work in the area where the image initially was.)
Is there a way of zooming in without clipping the image, and yet getting the pan and zoom tools to work all over the enlarged image?
I want to make photogrid like this app.
I know that I can do this using UIClollectionView or any other demos available in cocoa controls , but the issue of using all these is that i can not move the grid view in any direction i.e i can move only in horizontal or vertical directions but not in z axis direction (i.e scrolling horizontal and vertical directions at the same time).
I want the grid view to move in any directions.
Is there any way to achieve this?
Thanks..
I am drawing custom annotations over an image (circle, arrow etc) in my iPhone app. I allow pinch zooming & drag gestures for these annotations. These annotations are custom made AnnotationView with drawRect drawing circle / line etc.
I am finding issues with zooming
Try 1: The zoom is applied by scale transformation to the AnnotationView. Result: the annotations become blurred.
Try 2: To avoid blurring, I added redrawing with co-ords multiplied by scale factor instead of directly manipulating the transformation. This works without blurring, but, soon the circle etc goes out of the views bounds & is clipped.
I could use a bigger frame (size of full image), but, I am keeping the smaller frame so that I can easily move it back to position when it is dragged out of the window by user's zoom / pan gestures.
Question:
Is there a better way to manage this? I would like to zoom without blurring, while also having the ability to move it back to position if it is dragged out of original image bounds.