'Clipboard' does not exist in the namespace 'System.Windows.Forms'

as the compiler is clear telling a different datatype is returned:


taken from: Clipboard.GetImage Method (System.Windows) | Microsoft Learn

So a change to:
grafik

and importing: System.Windows.Media.Imaging to the namespaces (Imports panel, clos to the variables panel) will solve so far.

A success we can check with:
grafik

As this datatype does not offer a save() method, we also have to handle and modify this code part as well.

Quick dirty for the first start:
grafik

//Conversion
BmpBitmapEncoder encoder = new BmpBitmapEncoder();
MemoryStream ms = new MemoryStream();
encoder.Frames.Add(BitmapFrame.Create((BitmapSource) image));
encoder.Save(ms);
System.Drawing.Image img = System.Drawing.Image.FromStream(ms);
//Saving
img.Save("YourPathToABMPFile",  System.Drawing.Imaging.ImageFormat.Bmp );