/*
The program does not overwrite the picture's original image by limiting the width of the image to a simple function that scales the picture.
Picture equal to zoom function parameter description:
$IMGSRC The original image address can be a remote picture or a path on the server.
$newimgname the name of the picture after shrinking
$kuan Limit the width of the picture, if it is larger than the width of the image to narrow down
Recently because of the company project needs picture Viewer, online search a lap, feel little information, so decided based on Baidu Touch.js gesture Library + Zepto.js himself wrote a small plug-in, to achieve the right and left sliding, double refers to scaling, double-click the Zoom function, the basic use of the line, but sometimes it is not smooth, the follow-up will slowly improve; write the bad place hope you can give good advice, thank you!
This article introduces the Android realization ImageView picture Double click enlarge and reduce the related skill, share to everybody for everybody reference, the concrete content is as follows
public class Doublescaleimageview extends ImageView implements Ontouchlistener, Ongloballayoutlistener {private Boolea
n Isfirst = false;
Private float doublescale;//Double click the magnified value private Matrix Mscalematrix;
Private float defaultscale;//Default
browser and zoom, IE and chrome
Still a few years ago, zoom it was only IE's own private toy, but now, in addition to the Firefox browser, other, especially the chrome and mobile browsers have been well supported zoom properties:
zoomThe literal meaning is "zoom", a concept commonly used in photography. For
1, enlarge and shrink freely
2. Double click Zoom in and Zoom out
3. Can be free to move after amplification
4. Handling of conflict of events with Viewpager
The points of knowledge that need to be used
1.Matrix (Image zoom in, zoom out to use matrix)
2.ScaleGestureDetector (to detect the
: Cloud_zoom.rarPicture Magnifier effect is a good effect, many applications in e-commerce, image display and other sites, to bring a better experience for users. To achieve this effect of the code a lot, today to introduce to you is Cloud Zoom, it is a plug-in jQuery. Compared with other products, Cloud Zoom has the features of less code, more functionality, better compatibility, and supports Tint, Soft Fo
Effect preview:http://www.helloweba.com/demo/cloud-zoom/source code Download:http://pan.baidu.com/s/1eQnadXoCloud Zoom is an image magnification jquery plugin that works as Magic Zoom. Compared to popular jqzoom plugins, Cloud Zoom is small, with more features and more powerful cross-browser compatibility.View Demo Fea
To the photographic enthusiasts for detailed analysis to share the Canon SX510 HS camera focal length and optical zoom magnification.
Analytical sharing:
What about Canon SX510 HS focal length
Canon SX510 HS, like other SX series, is a telephoto camera with a large magnification zoom. Canon SX510 HS uses a 30 times optical zoom lens, its lens focal
Deep Zoom enables you to quickly scale and move high resolution images. Deep Zoom can use multiresolution images to achieve these functions.
This topic shows how to create a very simple Silverlight application that uses Deep Zoom.
To see a running example of this application, click the link below.
Http://samples.msdn.microsoft.com/Silverlight/SampleBrowser/ind
a window that enlarges to 400.
Figure 14-5 can be small or enlarged for better viewing of worksheets
Use the zoom slider at the right end of the status bar to easily change the magnification of the active worksheet, drag the slider, and immediately transform the screen.
Another way to zoom is to select View. Zoom-Z
This article has launched two kinds of Android gestures to realize ImageView scale picture size method, share for everybody reference, the concrete content is as follows
Method One:write the following code into Mulitpointtouchlistener.java, and then ontouchlistener your corresponding picture.For example: Imageview.setontouchlistener (New Mulitpointtouchlistener ());To change the zoom format of ImageView to matrix in XMLFor example: android:scaletype=
Have always wanted to write a picture to zoom in and zoom out of the gadget, originally thought it would be very complex, these days I think about it, the original is so easy ah. The current implementation of the zoom reduction, mainly based on the mouse wheel trigger events to achieve, less nonsense to say directly on the source.For the source code, do a few not
To the photographic enthusiasts for detailed analysis to share the Canon IXUS140 camera optical zoom magnification.
Analytical sharing:
Canon IXUS140 has 5 times times optical zoom and 4 times times digital zoom.
Well, the above information is small knitting to all of you photography enthusiasts brought to the detailed Canon IXUS140 camera optic
This article is reproduced from http://www.zhangxinxu.com/wordpress/?p=5019, IE and chrome and other browsers and zoomStill a few years ago, zoom it was just IE's own private toy, but now, in addition to the Firefox browser, the other, especially chrome and mobile browsers have been well supported by the Zoom attribute:zoomThe literal meaning is "zoom", a concept
-Some sites on the home page background map size does not vary with the browser zoom, such as Baidu Personal version of the home page, after zooming the size of the background map does not change:Another example is the petal net (huaban.com):Now use CSS to achieve this effect.First need a large enough size picture, Baidu background map size of 1600*1000px (image address: http://4.su.bdimg.com/skin/12.jpg?2); the size of the petals background map is 16
To the photographic enthusiasts for detailed analysis to share the Canon SX240 HS camera Optical zoom magnification.
Analytical sharing:
Canon SX240 HS supports 20 times times optical zoom and 4 times times digital zoom.
Well, the above information is small knitting to all of you photography enthusiasts brought to the detailed Canon SX240 HS camera Optical
Gesture recognition is important in iOS, and gesture manipulation is an important feature of mobile devices, greatly increasing the ease of use of mobile devices.
1, Uigesturerecognizer Introduction
Gesture recognition is important in iOS, and gesture manipulation is an important feature of mobile devices, greatly increasing the ease of use of mobile devices.
iOS system after 3.2, to facilitate the development of this use of some commonly used gestures, provides the Uigesturerecognizer class.
Now is the afternoon, I am still at work, the work is done, is testing, suddenly feel very confused, work for a year, still the same as the old, think of these can not help but to suck a cold sweat. So seize the time to look at my blog, update the content, sometimes do not force themselves, never know what the limits of their own. Today is a very basic and basic knowledge: animation. Animation is mainly divided into four kinds. 1. Zoom animation (scal
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.