How to

get image from clipboard

Published: 8. January 2009 | Updated: 8. January 2009
License: Microsoft Public License (MS-PL)
Categories: GDI, Windows
Tags: C# GDI Windows Winforms
Was this snippet helpful for you? YESYES / NONO

Import namespace

using System.Windows.Forms;

Code

Image img = null;

if (Clipboard.ContainsImage())
{
    img = Clipboard.GetImage();
}
Send us feedback about this snippet »



Related Snippets: