Beispiel #1
0
        public override BitmapSource Capture()
        {
            if (this.element == null)
            {
                return((BitmapSource)null);
            }
            double scale;

            FrameworkElementCapturer.GetScaledRectangle(this.element, this.DefaultSize, out scale);
            this.Scale = scale;
            return(FrameworkElementCapturer.Capture(this.element, this.DefaultSize));
        }
Beispiel #2
0
 public static BitmapSource CaptureElement(FrameworkElement frameworkElement, Size maxSize)
 {
     return(FrameworkElementCapturer.Capture(frameworkElement, maxSize));
 }