zooming

Zoom Control in Camera is not working in Android

夙愿已清 提交于 2019-12-24 21:22:29
问题 I am working on Custom Camera using Surface view in my application, also recording Video with screen Capture. I am looking to implement Zoom Control in my Camera Code but not getting success. Getting this log while Zooming: E/Adreno200-ES20(12756): <qgl2DrvAPI_glBufferSubData:709>: GL_INVALID_OPERATION I am using below code: /** * setZoomControl * @param params */ public void setZoomControl(Camera.Parameters params) { paramtrs = params; ZoomControls zoomControls = (ZoomControls) findViewById

Drag and zoom text with Kineticjs

风流意气都作罢 提交于 2019-12-24 19:14:41
问题 I am trying to zoom and pan a text which is draggable already. All the examples are on images or shapes and it seems I cannot adapt it to a text object. My questions are: Do I have to use the anchors or is any simpler way zoom a text with Kineticjs? I found an example regarding zooming a shape and the code crashes here: var layer = new Kinetic.Layer({ drawFunc : drawTriangle //drawTriangle is a function defined already }); Can we call a function while we are creating a layer? I usually create

Leaflet: pan map to new set of coordinates at new zoom-level on user action

孤者浪人 提交于 2019-12-24 18:05:10
问题 I have a web app with a list of GPS-check-ins from field agents. I would like to pan/zoom the current map/view when a check-in item from the list is clicked. I have setup the leaflet map and click event like so: function checkin_clicked(dt, mobile, address, lat, lon) { console.log(dt, mobile, address, lat, lon); var html = '<div style="width: 300px;" class="message"><img class="message-avatar" src="media/profile-pics/{mobile}.jpg" alt=""> <a class="message-author" href="#"> {name} </a> <span

Android Custom View - Optimizing Redrawing while Fling

两盒软妹~` 提交于 2019-12-24 07:07:28
问题 I have a custom view that represents something like a photo-collage. I need to support the following: Fling Zoom In Zoom Out Here's what I currently do: onDraw: Look out for the number of images to be drawn. Look out for the images to be drawn and their locations and angles If the image had been downloaded (from the server), draw it. Otherwise, draw some default image. onTouch: action = DOWN: Record X,Y action = MOVE: Record X,Y; get the delta; record "new origins" and invalidate the UI. This

Disable Firefox image zoom via javascript

江枫思渺然 提交于 2019-12-24 05:54:46
问题 I have a problem with image quality in Firefox: Firefox seems to zoom "everything" per default so some images really look fuzzy while in chrome their quality is perfect! I found out, that there is a setting in Firefox, which resolves the problem: "View->Zoom->Zoom Text only". Do you know a way to force Firefox to use this setting for a special website (using javascript)?? Thanks a lot Bye 回答1: No, because that's a setting for users, who may have poor eyesight and want to actually see the

Can panning/zooming be disabled in an android MapView while allowing users to click on an ItemizedOverlay?

只愿长相守 提交于 2019-12-24 05:22:15
问题 Is there a way of disabling panning/zooming and keeping map overlays clickable? I am specifically thinking about an ItemizedOverlay that I want to be tappable while denying users from moving around the map's viewport (It's for a game). I've seen the same question answered but the answer sadly doesn't allow for overlay items to be clicked. Thanks alot, best regards, Alex 回答1: I know this question is a little old but I had the same problem and found a workaround, it's not a graceful solution

Calculating zoomToSpan() degrees based on min/max lat/lng to be in the mapView

那年仲夏 提交于 2019-12-23 21:31:35
问题 I have a cluster of items on an overlay in a mapView. I know where the top/bottom/left/right most objects are. I want to use the zoomToSpan() method to zoom onto that area. What is the proper way to calculate the lat/lng degrees for this method ? 回答1: I found someone else posting a good solution to this problem here: http://www.anddev.org/zoom_and_span_on_a_cluster_of_points-t464.html Good luck! 回答2: This question has been asked before, and there's an excellent answer, with code, here:

JavaFX - Zoom relative to mouse position

白昼怎懂夜的黑 提交于 2019-12-22 18:26:51
问题 I can't get working zoom relative to mouse position in JavaFX. I've read and tried rewrite this and this, but it's not working. Can't scroll viewport using scrollPane.setViewportBounds() . I must use scrollPane.setHvalue() and scrollPane.setVvalue() , but can't get right recalculation to keep the same pixels under the mouse cursor. Current code keeps scrollbars positions: ZoomHandler.java import javafx.event.EventHandler; import javafx.scene.control.ScrollPane; import javafx.scene.input

Zooming in/out on Android Webview without a set limit

橙三吉。 提交于 2019-12-22 17:50:45
问题 In my current project I need my users to be able to scroll over and zoom in on large SVG Images. A major problem i encountered though, is the limit the android WebView class puts on zooming in and out. Is there any way I can remove or change these limits to my own likings? The standard zoom controls do not seem to support releasing these boundries. If my question is unclear, or if I need to elaborate on my question do not hesitate to ask. Greets, Wottah 回答1: Since no one seems to have come up

WPF Scale Transform and ScrollViewer - When Zoomed can't scroll beyond original size

核能气质少年 提交于 2019-12-22 16:58:07
问题 I have a StackPanel inside of a ScrollViewer. I have a slider that does a scale transform on the stackpanel to allow zoom-in and zoom-out functionality. The problem is that when I zoom in, the scrollviewer doesn't treat the content as being 'bigger'. So, if I scroll in a little and scroll as far right as I can go - it stops me before I get to the end of the content. If I zoom back out to the untransformed level, I see that it's stopping exactly at that point. If I zoom in a lot, I can only