What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use the Windows.Graphics.Capture API. Check whether capture is supported, let the user choose a display or application window with GraphicsCapturePicker, create a Direct3D 11 frame pool, save the first frame, and dispose every frame you acquire. The picker is the consent step: a UWP app should not silently select another window.

Choose the right capture flow

Windows.Graphics.Capture is the documented API for acquiring frames from a display or application window and producing snapshots or streams. It works for a one-image screenshot as well as continuous capture.

Requirement Use
Capture an entire monitor Let GraphicsCapturePicker return a display item.
Capture another application Let the picker return that application window.
Capture your own page content only Render the control or page to a bitmap instead; graphics capture is intended for a display or window.
Capture without user selection Not the flow described here. The system picker supplies explicit user consent.

When a capture is active, Windows draws a yellow border around the captured item. If several sessions are active, each captured item receives a border.

Prerequisites and manifest capability

  • Build a UWP app that targets a Windows version supporting Windows.Graphics.Capture.
  • Run on a supported Windows desktop device or Windows Mixed Reality immersive headset. Hardware and driver support can still make capture unavailable.
  • Add the Graphics Capture capability to the package manifest. In the Visual Studio manifest designer, add the capability under the Capabilities tab. A typical manifest entry is:
<Capabilities>
  <uap:Capability Name="graphicsCapture" />
</Capabilities>

Keep the existing uap namespace declaration from the generated manifest. If your project uses a different manifest schema version, use the designer so Visual Studio writes the matching namespace and capability form.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Lenovo Idea Tab - College Tablet - 11″ 2.5K IPS Touchscreen Display - 90Hz - MediaTek Dimensity 6300-8 GB Memory - 256 GB Storage - Integrated Arm Mali-G57 MC2 - Tab Pen and Folio Case
  • POWER YOUR STUDY, FUEL YOUR PLAY – Discover smarter learning with the Lenovo Idea Tab. Stay campus-ready with all-day battery life, AI-powered apps to enhance your work, and sharp graphics for tv marathons with friends.
  • SMOOTH, POWERFUL, IMMERSIVE – The MediaTek Dimensity 6300 processor is more powerful than ever, with the AI-enhanced multitasking you need to stay ahead.
  • CIRCLE IT, SEARCH IT – Use your Lenovo Tab Pen or fingertip to circle items for instant search results or to translate other languages without switching apps. Circle to Search with Google ensures answers are only a circle away.
  • SHARP VIEW, CLEAR SOUND – Experience sharp visuals and immersive sound for study sessions and streaming breaks. With 72% NTSC and quad Dolby Atmos-tuned speakers you can enjoy your study breaks with vivid videos and crystal-clear sound.
  • LEVEL UP YOUR STUDY – Write, organize, sketch, and calculate with four learning apps built to match your flow. Lenovo AI Note, Squid, Nebo, and MyScript Calculator help you stay clear, focused, and ready for every study session.

Implement a one-shot PNG capture

The following UWP C# example opens the system picker, captures one frame, and writes a PNG selected with FileSavePicker. It uses Win2D to turn the Direct3D surface into an image. Install the Microsoft.Graphics.Canvas (Win2D) package and add a button named CaptureButton to the page.

using Microsoft.Graphics.Canvas;
using System;
using System.Threading.Tasks;
using Windows.Graphics.Capture;
using Windows.Graphics.DirectX;
using Windows.Storage;
using Windows.Storage.Pickers;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;

public sealed partial class MainPage : Page
{
    private GraphicsCaptureItem _item;
    private Direct3D11CaptureFramePool _framePool;
    private GraphicsCaptureSession _session;
    private CanvasDevice _canvasDevice;
    private bool _saving;

    public MainPage()
    {
        InitializeComponent();
    }

    private async void CaptureButton_Click(object sender, RoutedEventArgs e)
    {
        if (!GraphicsCaptureSession.IsSupported())
        {
            await new ContentDialog
            {
                Title = "Screen capture is unavailable",
                Content = "This device or Windows configuration does not support Graphics Capture.",
                CloseButtonText = "OK"
            }.ShowAsync();
            return;
        }

        var picker = new GraphicsCapturePicker();
        _item = await picker.PickSingleItemAsync();
        if (_item == null)
            return; // The user cancelled the picker.

        _canvasDevice = CanvasDevice.GetSharedDevice();
        _framePool = Direct3D11CaptureFramePool.Create(
            _canvasDevice,
            DirectXPixelFormat.B8G8R8A8UIntNormalized,
            2,
            _item.Size);
        _session = _framePool.CreateCaptureSession(_item);
        _framePool.FrameArrived += FramePool_FrameArrived;
        _session.StartCapture();
    }

    private async void FramePool_FrameArrived(
        Direct3D11CaptureFramePool sender,
        object args)
    {
        if (_saving)
            return;

        using (var frame = sender.TryGetNextFrame())
        {
            if (frame == null)
                return;

            _saving = true;
            try
            {
                await SavePngAsync(frame);
            }
            finally
            {
                _saving = false;
                _session?.Dispose();
                _session = null;
                _framePool?.Dispose();
                _framePool = null;
            }
        }
    }

    private async Task SavePngAsync(Direct3D11CaptureFrame frame)
    {
        var picker = new FileSavePicker
        {
            SuggestedStartLocation = PickerLocationId.PicturesLibrary,
            SuggestedFileName = "capture"
        };
        picker.FileTypeChoices.Add("PNG image", new[] { ".png" });
        var file = await picker.PickSaveFileAsync();
        if (file == null)
            return;

        using (var bitmap = CanvasBitmap.CreateFromDirect3D11Surface(
            _canvasDevice, frame.Surface))
        using (var stream = await file.OpenAsync(FileAccessMode.ReadWrite))
        {
            await bitmap.SaveAsync(stream, CanvasBitmapFileFormat.Png);
        }
    }
}

The event handler checks out a frame with TryGetNextFrame() and puts it back in the pool when the using block disposes it. Do not retain the frame or its Direct3D surface after disposal. The sample stops after the first successfully received frame; for video, leave the session running and process each frame on a worker rather than doing expensive work on the UI thread.

Why the support check comes first

GraphicsCaptureSession.IsSupported() can be false because the device, Windows edition, graphics hardware, or driver does not provide the required capture path. Show an actionable message and leave the rest of the capture setup untouched when it returns false.

Rank #2
10.1" Window s 11 Touchscreen Tablet PC,In tel Processor,6GB RAM 128GB Storage,6000mAh Battery,Dual Band 2.4&5G WiFi Bluetooth Lightweight Portable Mini Laptop Tablet for School Business Office Travel
  • 【UPGRADED WINDOWS 11 HOME SYSTEM & HIGH PERFORMANCE】 This 10.1 inch Windows 11 tablet PC comes with activated Windows 11 Home system, pre-configured and ready to use out of the box, compatible with all mainstream Windows apps. Equipped with Intel Celeron 1.6GHz quad-core processor, 6GB RAM and 128GB built-in flash storage, this lightweight Windows tablet delivers smooth multitasking, allowing lag-free operation of office software, online courses, daily browsing and light video editing. It also supports 512GB TF card expansion to meet your long-term storage needs for files, videos and study materials.
  • 【FULL HD TOUCHSCREEN & HDMI OUTPUT】 Featuring a 1280 x 800 Full HD capacitive touch screen, this Windows touch tablet provides precise and sensitive multi-touch control for note-taking, drawing and video watching. The high-definition display restores vivid colors and sharp details for immersive visual experience. Built with HDMI output function and OTG support, you can easily connect external monitors, projectors and other devices to expand the screen, perfect for home entertainment, office presentation and study display.
  • 【LONG BATTERY LIFE & DUAL-BAND WIFI & BLUETOOTH】 Built-in 6000mAh large-capacity rechargeable battery supports up to 12 hours of long-lasting standby and video playback, fully meeting all-day outdoor office, online class and entertainment needs. Adopts advanced 2.4G+5G dual-band WiFi to ensure ultra-fast and stable network connection for smooth video calls and media streaming. Equipped with Bluetooth 4.2, this portable Windows tablet can wirelessly connect with mouse, keyboard, headphones and other Bluetooth peripherals to upgrade your operating experience.
  • 【ULTRA-PORTABLE SLIM DESIGN & MULTI-SCENARIO USAGE】Boasting a slim, lightweight body, this 10.1 inch mini tablet is easy to slip into backpacks and handbags, realizing portable carrying and casual use anytime and anywhere. It perfectly combines the portability of tablets and the practicality of laptops, serving as an ideal replacement for bulky traditional laptops. Widely applicable for student online learning, business mobile office, family daily entertainment, travel and outdoor work, fully satisfying study, work and entertainment multi-scene demands.
  • 【RIGOROUSLY TESTED & PREMIUM AFTER-SALES SERVICE】 All our Windows 11 tablet computers have passed strict full-functional testing, completely restored to factory default settings with stable hardware performance. It is an exquisite and practical holiday gift for Christmas, New Year, birthday and anniversaries. We provide professional 24-hour after-sales customer service, solving all product consultation and problem feedback for you efficiently, bringing you worry-free shopping and using experience.

Why the picker is mandatory in this sequence

GraphicsCapturePicker displays Windows system UI. The user selects a monitor or application window, and the resulting GraphicsCaptureItem identifies exactly what the app may capture. A cancelled picker returns no item; treat that as a normal cancellation, not an error.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Save the correct pixels

Content size and undefined padding

A frame surface can be larger than the current visible content. When you copy only part of a frame, use frame.ContentSize for the source rectangle. Pixels outside that size are not guaranteed to contain meaningful data. If the content is larger than the destination, the copy is clipped.

The sample saves the complete surface for simplicity. To produce a tightly cropped bitmap, create a Win2D CanvasRenderTarget sized to ContentSize, draw the frame surface into it with a source rectangle from (0,0) to that size, and save the render target instead of the original surface.

Rank #3
Fusion5 Built in USA 10.1” Windows 11 Professional Rugged Tablet PC - 12GB RAM, 256GB SSD, Intel 13th Gen, Full HD Windows Tablet Computer, HDMI, USB C - 2 Year Full Warranty with Accidental Damage
  • Proudly Assembled in Florida, USA: Each Fusion5 FWIN232 PRO N5 is meticulously assembled in Pasco County, Florida, ensuring American-level quality, faster logistics, and confidence in every unit. A premium Rugged Windows Tablet PC built with care.
  • 2 Year Full Warranty + Accidental Damage Cover: Confidence comes standard. This Windows 11 tablet comes with a 24-month full warranty, including protection for up to 2 accidental damage incidents. Whether it’s a drop, spill, or bump, your rugged tablet Windows 11 PC is fully covered. Simply scan the QR code to register your device and activate your coverage.
  • Rugged, Shockproof & Dustproof: Designed for extreme conditions, this work tablet resists drops, dust, and daily wear. A reliable tablet for work in industrial sites, outdoors, or classrooms, ready to perform where ordinary devices simply fail.
  • 12GB RAM + 256GB SSD with Expandable Storage: Multitask with ease thanks to blazing 12GB RAM and a 256GB SSD. Add extra space with a 512GB MicroSD card, giving your tablet PC Windows 11 the speed and capacity of a full tablet PC for work or play.
  • Windows 11 Professional with Intel 13th Gen Power: Run demanding apps without slowing down. Powered by Intel’s 13th Gen Alder Lake N100 CPU, this tablet Windows 11 delivers speed, security, and reliability. The ultimate rugged Windows tablet for serious professionals.

Handle resize and device changes

The selected window can resize while it is being captured. Recreate the frame pool with Direct3D11CaptureFramePool.Recreate() when the item size changes, the Direct3D device changes, or you change the pool’s buffer count or pixel format. Recreate discards frames already waiting in the pool, so finish or cancel pending processing before calling it.

SDR and HDR

The example uses DXGI_FORMAT_B8G8R8A8_UNORM, exposed in C# as DirectXPixelFormat.B8G8R8A8UIntNormalized, which is the normal SDR BGRA8 path. HDR displays may not produce correct pixels in that format; highlights can be clipped or colors can look washed out. For HDR capture, consider DXGI_FORMAT_R16G16B16A16_FLOAT through the capture pipeline, then either preserve an HDR output format or tone-map to SDR. Both choices require more processing and a file format that can represent the intended range.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Make continuous capture reliable

  • Keep the FrameArrived handler short. Move encoding, disk I/O, and image analysis off the UI thread or queue them to a bounded worker.
  • Always dispose each Direct3D11CaptureFrame. Holding references starves the frame pool and eventually stops new frames from arriving.
  • Use a small, deliberate buffer count. More buffers can absorb brief processing delays but consume more graphics memory.
  • Stop the session and dispose the frame pool when the page is unloaded, the user cancels capture, or the target closes.
  • Subscribe to item size-change notifications in a continuous-capture implementation and recreate the pool before copying frames at the new size.
  • Do not assume a frame is available for every event. Call TryGetNextFrame(), check for null, and be prepared for coalesced events.

UWP versus WinUI 3 migration

The capture namespace remains Windows.Graphics.Capture in WinUI 3, but picker initialization differs. A WinUI 3 app must initialize GraphicsCapturePicker with its window handle before calling the picker. The same window-handle initialization applies to FileSavePicker. Composition-surface updates must be dispatched to the UI thread, using the Microsoft.UI composition, hosting, and dispatching namespaces. Those are WinUI 3 migration requirements, not extra steps for a classic UWP page.

Rank #4
Fusion5 2026 Version 12" 2K Display Windows 11 Tablet PC with Stylus Pen - Built in USA - 12GB DDR5 RAM 512GB SSD, 13th Gen CPU, 12 inch Windows Tablet Computer, Built-in Fan, Fast Charging, Metallic
  • Proudly Assembled in Florida, USA: Each Fusion5 Helios 12 windows tablet is meticulously assembled in Pasco County, Florida, ensuring American-level quality, faster logistics, and confidence in every unit. A premium windows tablet pc built with care.
  • Stunning 12-Inch 2K Touchscreen Display: See more, do more. With a vibrant 2000x1200 resolution and a spacious 16:10 aspect ratio, this display delivers sharper details and extra screen real estate, perfect for everything from hands-on creative work to cinematic movie nights.
  • Includes Fusion5 Stylus Pen with Pixel-Perfect Precision: Bring your ideas to life naturally. Whether you're annotating documents, diving into complex creative workflows, or sketching your next masterpiece, this Fusion5 interactive pen gives you flawless, fluid control.
  • Active Cooling Fan for Heavy Workloads: An integrated built-in cooling fan maintains stable performance, prevents overheating, and avoids throttling—ideal for productivity, multitasking, and extended use of this high-performance pc tablet.
  • 12GB DDR5 RAM + 512GB SSD Storage: Next-gen DDR5 memory ensures smooth multitasking while the high-speed SSD provides fast boot times and ample storage for apps, files, and media on this versatile computer tablet.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshooting

The picker does not open or the app reports unsupported capture

Call IsSupported() before creating the picker and session. Verify that the app is running on a supported desktop or Windows Mixed Reality device, that graphics drivers are current, and that the Graphics Capture capability is present in the packaged manifest.

The picker returns null

The user cancelled the system UI. Do not create a frame pool until you have a non-null GraphicsCaptureItem.

No frames arrive

Confirm that FrameArrived is subscribed before StartCapture(), that the session and frame pool are still alive, and that the handler is not retaining an earlier frame. A blocked UI thread or an exception in the handler can also prevent useful processing.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Microsoft Surface Go Tablet Intel Pentium 4415Y 8GB RAM 128GB SSD (Renewed)
  • Compact 10-inch lightweight 2-in-1 design for on-the-go use. Easily slips into a bag, transitions seamlessly between tablet (for browsing, media) and laptop (with optional Type Cover for typing). Adjustable kickstand ensures comfortable viewing anywhere.
  • 10-inch (1800x1200) PixelSense touchscreen for crisp, vibrant visuals. Ideal for streaming, photos, and creative work; compatible with Surface Pen (sold separately) for precise note-taking and drawing.
  • Reliable daily performance with Intel Pentium 4415Y, 8GB RAM, and 128GB SSD. Smooth multitasking, fast boot/app launches, and ample storage for documents, media, and everyday tasks.
  • Pre-installed Windows 11 Pro for secure, seamless work and play. Features BitLocker encryption, Windows Defender, and smooth integration with Microsoft 365, OneDrive, and other essential apps.
  • Certified renewed device, rigorously tested and refurbished to meet quality standards. Offers like-new performance and reliability at a more affordable price, delivering great value for your money.

The image has black, stale, or random edges

Copy only the rectangle described by ContentSize. The unused part of a larger surface can contain undefined data. Recreate the pool after a target resize.

Colors look wrong on an HDR monitor

Do not force HDR content through the SDR BGRA8 format. Use the floating-point HDR format where supported and decide explicitly whether your output should remain HDR or be tone-mapped to SDR.

The app becomes sluggish

Do not encode PNGs, write files, or run computer-vision work synchronously for every arrival on the UI thread. Limit queued work, dispose frames promptly, and capture one frame instead of running a continuous session when a still image is all you need.

A yellow border appears in the output

The border is Windows’ visible indication that the item is actively being captured. It is expected during an active session; stop and dispose the session when the screenshot is complete.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Or skip the browser setup

If your real requirement is a screenshot of a public website rather than pixels inside your UWP window, ScreenshotNeo provides a website screenshot API and MCP server. It is not a replacement for Windows.Graphics.Capture when you need the user’s desktop or another local application, but it avoids shipping browser automation in a service or backend.

One GET request returns PNG, JPEG, WebP, or PDF. The API accepts the URL and access key directly; see the ScreenshotNeo API documentation for the full option set.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

Equivalent Python:

import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)

Equivalent Node.js:

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

Before the capture, ScreenshotNeo accepts cookie or consent banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each cleanup step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers report the page verdict and whether the request was billed. Its MCP server exposes take_screenshot, get_page_info, and capture_pdf to Claude, Cursor, and other MCP clients. The Free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 screenshots. Create a free ScreenshotNeo account to try it without a card.

Implementation checklist

  1. Declare the Graphics Capture capability.
  2. Check GraphicsCaptureSession.IsSupported().
  3. Open GraphicsCapturePicker and handle cancellation.
  4. Create a Direct3D device and a Direct3D11CaptureFramePool with a format and the selected item size.
  5. Create the session, subscribe to FrameArrived, and call StartCapture().
  6. Acquire, process, and dispose each frame; use ContentSize when cropping.
  7. Recreate the pool after size or device changes.
  8. Choose an HDR-capable format when capturing HDR content.
  9. Stop and dispose the session and pool as soon as the capture is finished.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.