protoface / DesktopCapture

A easy-to-use library to efficiently record screens

Home Page:https://www.nuget.org/packages/protoface.DesktopCapture/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DesktopCapture

Nuget Nuget

A easy-to-use library to efficiently record a screen (Windows-only)

Usage

using System.Drawing;
using DesktopCapture;

DesktopDuplicator dd = new();

Bitmap bmp = dd.GetLatestFrame(out bool isNew);

Documentation

Constructor Description
new DesktopDuplicator() Uses the primary screen as the capture-source
new DesktopDuplicator(int graphicsCard) Uses the first output coming from that GPU
new DesktopDuplicator(int output) Uses the nth output from the first GPU
new DesktopDuplicator(int graphicsCard, int output) Uses the nth output from the nth GPU
Method returns Description
GetLatestFrame Bitmap / bool Retrieves the latest frame in full resolution and indicates wether the frame has been retrieved before
GetLatestFrameHalfRes Bitmap / bool Retrieves the latest frame in full resolution and indicates wether the frame has been retrieved before

About

A easy-to-use library to efficiently record screens

https://www.nuget.org/packages/protoface.DesktopCapture/

License:MIT License


Languages

Language:C# 100.0%