赞助广告

 

年份

最新评论

评论 RSS

Xamarin获取iOS获取设备分辨率以及放大系数

clock 八月 4, 2016 01:29 by author alex
UIApplication.SharedApplication.Windows[0].RootViewController.View.Transform = CGAffineTransform.MakeScale(Game1.scaleXValue, Game1.scaleYValue);             UIApplication.SharedApplication.Windows[0].RootViewController.View.Frame = new CGRect(0 ,0, Game1.ScreenWidth, Game1.ScreenHeight);

UWP获取设备真实分辨率

clock 三月 22, 2016 22:47 by author alex
double screenWidth = ApplicationView.GetForCurrentView().VisibleBounds.Width * DisplayInformation.GetForCurrentView().RawPixelsPerViewPixel;            double screenHeight = ApplicationView.GetForCurrentView().VisibleBounds.Height * DisplayInformation.GetForCurrentView().RawPixelsPerViewPixel;

友情链接赞助