Ejemplo n.º 1
0
        public Region AdjustRegion(Region inputRegion, Size deviceLogicalViewportSize)
        {
            if (viewportMetaTag_.FollowDeviceWidth)
            {
                return(inputRegion);
            }
            float  widthRatio     = (float)inputRegion.Width / deviceLogicalViewportSize.Width;
            Region adjustedRegion = new Region(inputRegion.Left, inputRegion.Top, deviceLogicalViewportSize.Width, (int)Math.Round(inputRegion.Height / widthRatio));

            return(adjustedRegion);
        }
Ejemplo n.º 2
0
 internal new bool ScreenToLastScreenshot(
     Rectangle control,
     out Region controlRegion)
 {
     return(base.ScreenToLastScreenshot(control, out controlRegion));
 }
Ejemplo n.º 3
0
 public Region AdjustRegion(Region inputRegion, Size deviceLogicalViewportSize)
 {
     return(inputRegion);
 }