}

void msi_ImageOpenSucceeded(object sender, RoutedEventArgs e) { //If collection, this gets you a list of all of the MultiScaleSubImages

// //foreach (MultiScaleSubImage subImage in msi.SubImages) //{

// // Do something //} }

void msi_Loaded(object sender, RoutedEventArgs e) { // Hook up any events you want when the image has successfully been opened }

publicvoid Zoom(double

zoom, Point pointToZoom) { Point logicalPoint = this.msi.ElementToLogicalPoint(pointToZoom);
this.msi.ZoomAboutLogicalPoint(zoom, logicalPoint.X, logicalPoint.Y); }
/*
* Sample event handlerrs tied to the Click of event of various buttons for * showing all images, zooming in, and zooming out!
*
private void ShowAllClick(object sender, RoutedEventArgs e)
{
this.msi.ViewportOrigin = new Point(0, 0);
this.msi.ViewportWidth = 1;
ZoomFactor = 1;
}
private void zoomInClick(object sender, RoutedEventArgs e)
{
Zoom(1.2, new Point(this.ActualWidth / 2, this.ActualHeight / 2));
}
private void zoomOutClick(object sender, RoutedEventArgs e)
{
Zoom(.8, new Point(this.ActualWidth / 2, this.ActualHeight / 2));
}
* */
w 页码,1/13(W) webabcd - 专注于asp.net, html5, silverlight ASP.NET 从现在开始 一切都不晚 博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: ...
扩展GridView控件(5) - 固定指定 行、指定列(30529) 6. [翻译].net 2.0(c#)下简单的FTP 应用程序(29680) 7. 稳扎稳打 Silverlight 2.0 系列文 章索引...
w 页码,1/12(W) webabcd - 专注于asp.net, html5, silverlight ASP.NET 从现在开始 一切都不晚 博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: ...
w 页码,1/12(W) webabcd - 专注于asp.net, html5, silverlight ASP.NET 从现在开始 一切都不晚 博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: ...
热门文档