Pls help! i am trying to make a zoom effect on a picturebox by mouse wheel.Everything is ok except that when i use mouse middle button to zoom in or zoom out it is ok but it does not zoom in or zoom out the point which the mouse cursor on.when i zoom in the point what i want it always slide .Pls help me to add a snippet code to make i...
WPF: What is the best way to implement Zoom In and Zoom Out option for an Image inside ScrollViewer in WPF at runtime and also other alternative methods for the same
Please provide sample code and suggest links where I can find sample code and more info about various ways to Zoom the image.
Regards,
Anwar
...
Is there a common way to show a big image and enable the user to zoom in and out and pan the image?
Until now I found two ways:
overwriting ImageView, that seems a little bit too much for such a common problem.
using a webview but with less control over the overall layout etc.
...
Hello!
Plattform:
.NET 3.5 with C#
WPF
3DTools
I'm using 3DTools from the Codeplex site (3D Tools) for rotating and panning of 3D Models. This works fine. The Trackball class also contains a method for zooming models with the mouse wheel. However, this method always scales the model with Point(0,0,0) as the center of the zooming. B...
I'm trying get and set the "ZoomScroll" of a AcroPDFLib Control.
axAcroPDF1.setZoomScroll(150, 300, 300);
works but there is no function to get that 3 parameters.
Only getting the scrollpos like in a textcontrol doesn't work, too:
scrollpos = GetScrollPos(axAcroPDF1.Handle, (int)ScrollBarType.SbVert);
...
Hi, I'm experiencing the following: I created a UIView subclass with a CATiledLayer as backing layer by overriding the layerClass method. The layer properties (delegate, tileSize, etc) are set in the initWithFrame: method of the subclass.
+(Class)layerClass {
return [CATiledLayer class];
}
-(id)initWithFrame:(CGRect)frame {
i...
Need set zoom for camera preview...
...
Hi guys, you all know: "right click -> zoom in or out" in flash file, well, I need to do this but using, for example, clicking a button.
Is this possible using only AS3 code?
Thx!
...
My setup.
UIScrollView (scrollView)
- UIView (contentView)
- UIView (subView)
I have managed to do so I can zoom contentView only on the x-axis. The problem is that subView is containing a graph. When contentView is zoomed and transformed the graph gets unsharp and distorded since the scaling only effect the x-axis.
What I need help...
Hi all,
I've got a button with an image in it and it's being styled by the following:
<ControlTemplate x:Key="IconButton" TargetType="Button">
<Border>
<ContentPresenter Height="80" Width="80" />
</Border>
<ControlTemplate.Triggers>
<EventTrigger RoutedEvent="Button.Cl...
I just can't give a good title to my question, sorry.
I have 3x3 picture boxes on a form, what I want to do is when the user double click on one of the 9 picture box, I want to make the clicked picture box take the whole area, kind like a zoom effect, any idea how to implement this effect?
...
I'm working with hi-res images on an iPad app. When my image first loads it looks clear. When I pinch zoom in, it retains clarity. When I zoom out, the image becomes very slightly distorted (fine striped lines appear slightly checkered). It seems to me that a zoom out (even with a double tap) doesn't restore the original image exactly.
...
There is something I am missing. Say I have the following code:
private Bitmap source = new Bitmap (some_stream);
Bitmap bmp = new Bitmap(100,100);
Rectangle newRect = new Rectangle(0, 0, bmp.Width, bmp.Height);
Rectangle toZoom= new Rectangle(0, 0, 10, 10);
Graphics g = Graphics.FromImage(bmp);
g.DrawImage(source, newRect, toZoom, Gra...
My GUI toolkit, wxPython provides some methods for implementing a user zoom factor, however the quality isn't too good. I'm looking for ideas on how to create a zooming feature, which I know is complicated.
I have a bitmap representing my canvas which is drawn to. This is displayed inside a scrolled window.
Problems I forsee:
- perf...
Hey guys,
i've got 2 GeoPoints given to show them on the map with markers...
so far so good...
how can I get the optimum zoom level for the MapController in order to focus the middle of both points, but also have them on the map.
The whole thing should work at different screen resolutions.
Sorry for asking that silly question, I know...
Is there a way to programmatically set the iPad to run the iPhone app at 2x as it is launched (yet keep the iPhone app native). I understand I can create NIB files for each hardware platform, but for ease, I just would rather the app launch as if the user had tapped the 2x on the iPad. Thanks...R.J.
...
I use the following code to load an image into an scroll view. The image always loads at 100% zoom. Is there a way to set it to load to another zoom level, say .37?
I have tried scrollView.zoomScale = .37 but it didnt seem to work
UIImageView *tempImage = [[UIImageView alloc]initWithImage:[UIImage imageWithData:data]];
self.ima...
Hi guys,
after a little bit of work my route application works fine :)
The only thing I just want to add is a double tap zoom in function, but I don't know how...
could you give me a hint?
nice greetings,
poeschlorn
...
I have a chart that the user is able to zoom into an area by setting the min and max of LinearAxis for the vertical and horizontal axis. When you are zoomed in and you want to view or hide one of the series the chart zooms out to the max and then back in. How do I get the chart to not zoom out when setting the visibility of the series?...
Hi, im trying to create a mobile friendly web page using the code below. When i view it over a HTC desire i have to zoom in to see the correct size. How can i get it to display normally without having to zoom in?
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="MobileSite._Default" %>
<!DOCTYPE html...