zooming

Android: Can I use a zoom control in an imageview?

不羁的心 提交于 2019-12-04 15:49:56
问题 Can I apply zoom control in imageview 回答1: ImageView does not have a built-in zoom control. Please use the search option before asking question, you would have found your answer : How to make my ImageView zoomable? which mentions that there seems to be a way although there is no built in. Please correct your title to make it easier to find with a search, for instance : is there a way to zoom on an ImageView in Android 回答2: I'd advice you to use a WebView String page = "<html><body><center>

Algorithm for self-scaling ruler in plotter GUI component

隐身守侯 提交于 2019-12-04 13:59:44
I am designing (not programming) a data-series viewer program for medical data, using C#/WPF. There is one main panel which shows the data, with the common mouse pan/zoom functionality (pan with left drag, horizontal zoom with scroll, vertical auto-fit with double click, selection with right drag). The problem is: I need vertical and horizontal grid with rulers on the top/left, similar to those seen in audio-editing (goldwave, audacity), cartography (gpsTrackmaker) and ilustration (photoshop, inkscape) programs. Besides, these rulers are even configurable in most plotting APIs (Matlab, GNUPlot

How to zoom to the center with a scrollview?

霸气de小男生 提交于 2019-12-03 22:17:30
We had previously implemented tapping to zoom and now we've decided to use icons instead that will zoom in on the center of whats currently being displayed, and we'd like to reuse the code we had for our tap to zoom since we want the same effect, but now we don't know what to pass as the centerpoint. We're using the (CGRect)zoomRectForScale:(float)scale withCenter:(CGPoint)center method which used to accept a center cgpoint from the gesture recognizer that we used for tap zooming; however, since we're no longer using the gesture recognizer we're going to have to figure out what cgpoint to pass

How do I stop a CSS layout from distorting when zooming in/out?

偶尔善良 提交于 2019-12-03 17:57:57
问题 I've set up a very basic site with a #container div that includes the #navbar and #content. However, when I zoom in or out, the #navbar distorts, if I zoom in the links get pushed down below each other instead of being inline. If I zoom out, too much padding is added between the links. How can I stop this? HTML: <div id="navbar"> <ul> <li><a href="index.html">Home</a></li> <li><a href="top.html">Top</a></li> <li><strong><a href="free.html">FREE</a></strong></li> <li><a href="photo.html">Photo

Turn off Zooming in UIScrollView

笑着哭i 提交于 2019-12-03 10:26:06
Does anyone know a way to temporarily turn off zooming when using a UIScrollView? I see that you can disable scrolling using the following: self.scrollView.scrollEnabled = false; but I'm not seeing a similar command for zooming. Any thoughts? combinatorial If you want to disable the user's ability to zoom through gestures then in iOS 5 and above you can disable the pinch gesture. This still allows you to control the scroll view from code... scrollView.pinchGestureRecognizer.enabled = NO; similarly for pan... scrollView.panGestureRecognizer.enabled = NO; This must be called in - (void

Android: Can I use a zoom control in an imageview?

ε祈祈猫儿з 提交于 2019-12-03 09:05:06
Can I apply zoom control in imageview Sephy ImageView does not have a built-in zoom control. Please use the search option before asking question, you would have found your answer : How to make my ImageView zoomable? which mentions that there seems to be a way although there is no built in. Please correct your title to make it easier to find with a search, for instance : is there a way to zoom on an ImageView in Android I'd advice you to use a WebView String page = "<html><body><center><img src=\""+path to your image+"\"/></center></body></html>"; webView.loadDataWithBaseURL("fake",page, "text

Zoom ImageView in android like Instagram

若如初见. 提交于 2019-12-03 07:47:53
How can I zoom ImageView like Instagram. I mean changing the size of imageview, not zooming the image inside the Imageview. For zooming the image inside the Imageview, there are a lot of samples but I want something like Instagram image zooming Any code or hint? Thanks. I would recommend these two libraries: PhotoView ImageViewZoom For PhotoView, you just have to create an attacher and "attach" it to your ImageView . Some code // After getting your imageImage view, attach it like the following PhotoViewAttacher yourAttacher = new PhotoViewAttacher(yourImageView); With just this code, you'll be

How do I suppress window mouse wheel scrolling…?

十年热恋 提交于 2019-12-03 06:57:39
I'm working on a canvas app embedded in a page. I have it so you can zoom into the drawing with the mousewheel but unfortunately this scrolls the page as it is part of an article. Is it possible to prevent mousewheel scrolling on the window when I'm mousewheeling on a dom element?! Attach an event handler for mousewheel (Not Gecko) / DOMMouseScroll (Not IE) and prevent its default action (that is to scroll content): if (element.addEventListener) element.addEventListener("DOMMouseScroll", function(event) { event.preventDefault(); }, false); else element.attachEvent("mousewheel", function() {

emacs zoom in/out globally

我与影子孤独终老i 提交于 2019-12-03 02:42:42
I know that I can zoom in/out using C-x C-+, but this applies only to the current file. Once I open another one, the text goes back to the default value and it's really tiresome to do it over and over. How can I keep the zoom level global for the current emacs session? I know it's possible to set this in the init file if you know the exact font size, which I don't. Plus, I don't want to keep it that permanent - I usually need this when I'm without an external screen for a couple of hours or connected to a beamer while giving a presentation. This piece of code modify the zoom in/out

zoom in/out images in c#

故事扮演 提交于 2019-12-02 23:30:07
问题 Any one know the corresponding C# code of this 回答1: Yes, I do. Are you asking for someone on here to translate that entire VB.NET project into C# for you? That isn't likely to happen for free. Instead, might I suggest that you try an automated conversion tool, like this one, or this other one? But really, any competent C# programmer should be able to translate VB.NET code into C# with a little bit of effort. The only thing that's changed is the syntax; the underlying methods are all exactly