Hello,
Just wondering, how do you be able to zoom in and out of an imageviewer, for example, i want the user to be able to create an rectangular shape around the part of the image to zoom in and zoom back out, how can this be done?
Thank you
Hello,
Just wondering, how do you be able to zoom in and out of an imageviewer, for example, i want the user to be able to create an rectangular shape around the part of the image to zoom in and zoom back out, how can this be done?
Thank you
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Kip HackmanPosted Jul 31, 2020, 9:35 AM
anwar mohamedPosted Mar 17, 2010, 10:28 AM
WPF: I've a Image control inside a ScrollViewer and TIFF file set as its source. Image displayed with black overlay for some height values (in range of 40% to 60% of image's actual height). This need to be resolved somehow. Only for some height range this problem occurs and when changed to other height it works normal.
Please note:
1. The image has to be 600 DPI Resolution.
2. Image Height="3510" will reproduces the issue.
<Image Source="htl.tif" Height="3510" Stretch="Uniform" StretchDirection="Both"/>
This is my test code as follows:
XAML
<Window x:Class="WpfApplication1.ScrollViewImage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="ScrollViewImage" Height="300" Width="300">
<Grid>
<ScrollViewer Margin="5" HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Visible">
<Image Source="htl.tif" Height="3510" Stretch="Uniform" StretchDirection="Both"/>
ScrollViewer>
Grid>
Window>
Regards,
Anwar
Bechir BejaouiPosted Dec 21, 2008, 11:03 AM
http://www.c-sharpcorner.com/UploadFile/yougerthen/408222008125400PM/4.aspx