zooming

C#: Simple and functional way to zoom picturebox images with scroll bars

扶醉桌前 提交于 2019-12-18 04:41:07
问题 Is there a simple and functional way to zoom an image in a picturebox including scroll bars? At the moment, I use a picture box in a panel with auto scroll activated. To zoom, I enlarge the picturebox and move it with the scroll bars on the panel. The problem is, that it behaves strange. For example: If you zoom in to far, the margin between the upper and left form border and the image get's bigger and bigger. That's the zooming method. I got it from here. private void ZoomInOut(bool zoom) {

How to control zoom in webView

倖福魔咒の 提交于 2019-12-17 16:41:49
问题 I have this code: [...] { webView = (WebView) findViewById(R.id.webView1); webView.setInitialScale(getScale(Double.parseDouble(pubPages))); webView.getSettings().setJavaScriptEnabled(true); webView.getSettings().setSupportZoom(true); webView.getSettings().setBuiltInZoomControls(true); webView.getSettings().setDefaultZoom(WebSettings.ZoomDensity.FAR); webView.getSettings().setLoadWithOverviewMode(true); webView.getSettings().setUseWideViewPort(true); webView.setPadding(0, 0, 0, 0); webView

How do I reset after a UIScrollView zoom?

爷,独闯天下 提交于 2019-12-17 03:48:16
问题 I have a Graph being drawn inside a UIScrollView . It's one large UIView using a custom subclass of CATiledLayer as its layer. When I zoom in and out of the UIScrollView , I want the graph to resize dynamically like it does when I return the graph from viewForZoomingInScrollView . However, the Graph redraws itself at the new zoom level, and I want to reset the transform scale to 1x1 so that the next time the user zooms, the transform starts from the current view. If I reset the transform to

How to change dynamically CFormView WIDTH or HEIGHT in MDI MFC C++ windows application?

笑着哭i 提交于 2019-12-14 03:57:49
问题 In 1997, I have used C++ to create an MDI MFC program. I have created a Class named XFormFiew that extends MFC CFormView class. In OnInitialUpdate() event method, I have written some codes to modify automatically the zooming of the view. In the past, the majority of screen resolution are 800x600, but now the resolution is higher. In zooming automatically in XFormView , I avoid to made some modifications in all my views. The zooming code modify Left and Bottom but also Width and Height of each

JFreeChart Maximum Zoom Out

点点圈 提交于 2019-12-14 03:55:45
问题 I am working with JFreeChart to create a line graph via an XYPlot which is embedded into an application. The graph is contained within a ChartPanel and added to the background panel of my GUI. My issue is that the XYPlot appears so zoomed in that I am unable to see any of the lines; simply the whitespace background each side of them! Is there a way to view the component at its "maximum zoomed out" state so that the graph is understandable? Many thanks :) 回答1: The setZoomInFactor() method

How to do this image zooming trick in a browser?

倖福魔咒の 提交于 2019-12-13 03:49:11
问题 I would like to do the following trick in a browser: Create three image files of different size (small, medium, large) from one picture. First, display the small image in a browser. When a user zooms in the small image replace it with the medium one. Now the user can scroll it within the window up and down, left and right. When a user zooms out the small image replace it with the small one, etc. I would prefer JavaScript (Flash is the second option). What tool would you recommend ? 回答1: A

Auto switch to other mapType on max zoom level in google maps

自闭症网瘾萝莉.ら 提交于 2019-12-13 00:14:54
问题 By default my map has TERRAIN mapType with maxZoom=15. I want map to change it's mapType to HYBRID (that has maxZoom=22) automatically when user tries to zoom map above the 15 level. Currently I do the following: google.maps.event.addListener(map,"zoom_changed",function() { if (map.getZoom() == 15) map.setMapTypeId("hybrid"); }); This solution does not suit me because here we loose terrain map zoom=15, and I want to change mapType only if there's no data for this mapType on the current level.

UIScrollView setZoomScale sets the applied rotation back to Zero

烈酒焚心 提交于 2019-12-12 10:46:44
问题 I've been working on a maps replacement for quite a while now. The whole thing works with a UIScrollView backed by a CATiledLayer . To rotate my map, i rotate the layer itself. (Using CATransform3DMakeRotation ) Works pretty well so far =) But if I ever call setZoomScale method the CATransform3D that is going to be submitted to my layer is resetting the rotation to 0. My question is, is there any way to set the zoomscale of my scrollView without loosing the applied rotation? The same problem

Algorithm for self-scaling ruler in plotter GUI component

爱⌒轻易说出口 提交于 2019-12-12 08:57:50
问题 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,

Triple Nested UIScrollView paging issue

北城余情 提交于 2019-12-12 07:19:50
问题 Backstory I have an iPad app that needs to allow the user to navigate through groups of images. Each group is laid out in its own vertical UIScrollView (paged) so the user can swipe up and down down to see each image. Each of the group UIScrollViews is placed in a single (only one exists in the app) outer horizontal UIScrollView (also paged). This works great.... I can swipe up and down to view the images in a group and swipe left and right to go to the next or previous group. Problem The