image-zoom

UIImageView does not zoom

前提是你 提交于 2019-12-10 10:20:20
问题 I would like to zoom an image on a popup view. I've created the UIView subclass, based on this sample code: ZoomView.h: @interface ZoomView : UIView <UIScrollViewDelegate> { UIScrollView *imageScrollView; UIImageView *imageView; } @property (strong, nonatomic) IBOutlet UIScrollView *imageScrollView; @property (strong, nonatomic) IBOutlet UIImageView *imageView; @end ZoomView.m: #import "ZoomView.h" #define ZOOM_VIEW_TAG 100 #define ZOOM_STEP 1.5 @interface ZoomView (UtilityMethods) - (CGRect

Add limit to zoom-in and zoom-out in android

大城市里の小女人 提交于 2019-12-09 13:56:09
问题 I have an imageview that can be zoomed. I have a code that works well, but my problem is that I want to add a limit for maximum and minimum zooming levels. import android.annotation.TargetApi; import android.app.ActionBar; import android.app.Activity; import android.graphics.Matrix; import android.graphics.PointF; import android.os.Build; import android.os.Bundle; import android.util.FloatMath; import android.util.Log; import android.view.MenuItem; import android.view.MotionEvent; import

Image zoom activity for android

徘徊边缘 提交于 2019-12-08 08:32:54
问题 I'm trying to implement the double tap and the pinch to zoom activity. I wrote some code for the first one but it seem not to work (i can use only the android emulator for eclipse for now. So I'm not sure if my result is the right one) Anyway I'm not able to understand what am I doing wrong. I'm surely forgetting something. This is my code: public class ImageZoomView extends View implements OnGestureListener { private static final int SCALING_FACTOR = 50; private final int LANDSCAPE = 1;

add object to image view, how to keep object location when zoom image

好久不见. 提交于 2019-12-08 04:55:26
问题 I have an image, my job is how to zoom it to see detail with object. After a lot of searchs, I decided to use Touch Image VIew class But my problem is when zooming this image, the object i add to this image by called ((ViewGroup)image.getparent).addview(object) have problem. That is this object can not change it position when I zoomed, you can see my picture here: You can see the icon Android i added into picture. Here is the picture when i zoomed it I can not find the way how to display this

Correct way to use a matrix to zoom an imageview around a focal point

為{幸葍}努か 提交于 2019-12-07 19:54:44
问题 Let me start off by saying I've read through a fair amount of zoom questions and recalculating coordinates on here. But I can't seem to apply them to my situation. I have a custom ImageView class that can zoom and scroll. The problem I am having comes from doing the following in this order: Zooming in on a point, and using that point as a focal point (this works) Scrolling while still zoomed in Trying to zoom either in/out on a different point ( doesn't work ) Here is a example of the custom

jQuery gzoom plugin doesn't work

烂漫一生 提交于 2019-12-07 04:19:06
问题 I am trying to add a zoom on my image with the jQuery (brilliant) plugin gzoom (http://lab.gianiaz.com/jquery/gzoom/ or http://www.chouselive.co.za/demo/pictures/zoom/gzoom.php). But it doesn't work. My image is just resized, but there is no zoom in it. Here is my code : <!doctype html> <html> <head> <meta charset="utf-8"> <title>test gzoom</title> <link rel="stylesheet" href="css/jquery-ui-1.7.1.custom.css" type="text/css" media="screen"> <link rel="stylesheet" href="css/jquery.gzoom.css"

Zooming of an image using mousewheel.

我怕爱的太早我们不能终老 提交于 2019-12-06 07:53:36
问题 In the code below I am trying to zoom the image via a mouse wheel. But the code is not working properly, it is just refreshing the panel but it does not resize it. Actually I am taking the image from memory stream that is created by another class called as decrypt. Complete Image is displayed properly but I am not able to performing zooming of the image using mousewheel event. Plz help Me. private void Form2_Load(object sender, EventArgs e) { this.Width = Screen.PrimaryScreen.WorkingArea

Correct way to use a matrix to zoom an imageview around a focal point

↘锁芯ラ 提交于 2019-12-06 04:37:33
Let me start off by saying I've read through a fair amount of zoom questions and recalculating coordinates on here. But I can't seem to apply them to my situation. I have a custom ImageView class that can zoom and scroll. The problem I am having comes from doing the following in this order: Zooming in on a point, and using that point as a focal point (this works) Scrolling while still zoomed in Trying to zoom either in/out on a different point ( doesn't work ) Here is a example of the custom view. There are two circles: red and green. red is where the focal point should be and green is where

“Zoom In/out ” image on Button Click in Android?

徘徊边缘 提交于 2019-12-06 03:59:19
问题 I am newbie in Android.I have followed this Question and i successfully zoom an image this code is working fine can someone please help me how to write code for zoomin zoomout on button click.I am not getting how to achieve this task Here is the Tutorial that i followed Tutorial Zoom Image and also follow "Salman's Ayub Answer" Its working fine but i am failed to apply scale factor on zoom in and zoom out of image 回答1: You need to add these 2 methods to your TouchImageView class: public void

jQuery gzoom plugin doesn't work

大兔子大兔子 提交于 2019-12-05 08:09:49
I am trying to add a zoom on my image with the jQuery (brilliant) plugin gzoom ( http://lab.gianiaz.com/jquery/gzoom/ or http://www.chouselive.co.za/demo/pictures/zoom/gzoom.php ). But it doesn't work. My image is just resized, but there is no zoom in it. Here is my code : <!doctype html> <html> <head> <meta charset="utf-8"> <title>test gzoom</title> <link rel="stylesheet" href="css/jquery-ui-1.7.1.custom.css" type="text/css" media="screen"> <link rel="stylesheet" href="css/jquery.gzoom.css" type="text/css" media="screen"> <style> div#zoom{ cursor: crosshair; } </style> </head> <body> <div id=