コード例 #1
0
        ScreenInfo IRenderWebBrowser.GetScreenInfo()
        {
            var screenInfo = new ScreenInfo();

            screenInfo.Width = size.Width;
            screenInfo.Height = size.Height;
            //TODO: Expose NotifyScreenInfoChanged and allow user to specify their own scale factor
            screenInfo.ScaleFactor = 1.0F;

            return screenInfo;
        }
コード例 #2
0
        ScreenInfo IRenderWebBrowser.GetScreenInfo()
        {
            //TODO: Expose NotifyScreenInfoChanged and allow user to specify their own scale factor
            var screenInfo = new ScreenInfo
            {
                ScaleFactor = 1.0F
            };

            return screenInfo;
        }
コード例 #3
0
        ScreenInfo IRenderWebBrowser.GetScreenInfo()
        {
            var screenInfo = new ScreenInfo
            {
                ScaleFactor = (float)matrix.M11
            };

            return screenInfo;
        }
コード例 #4
0
        ScreenInfo IRenderWebBrowser.GetScreenInfo()
        {
            var screenInfo = new ScreenInfo();

            var point = matrix.Transform(new Point(ActualWidth, ActualHeight));

            screenInfo.Width = (int)point.X;
            screenInfo.Height = (int)point.Y;
            screenInfo.ScaleFactor = (float)matrix.M11;

            return screenInfo;
        }