Open
Description
Depending on how the image was copied to clipboard, the result of this method can result in a blank (but with a finite width and height) image. This is obvious when in WPF and Image control is set image.Source = Clipboard.GetImage()
A solution for this problem exists, but code needs to use Windows.Forms API and the gdi32.dll. Applications such as Free Clipboard Viewer 3.0 display the bitmap correctly.
https://stackoverflow.com/questions/25749843/wpf-image-source-clipboard-getimage-is-not-displayed/25751020#25751020
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 85bb3f94-8ee1-71c6-5f3d-1a79acf36e05
- Version Independent ID: bd9a08d0-e44e-b797-7c8d-2998364402bc
- Content: Clipboard.GetImage Method (System.Windows)
- Content Source: xml/System.Windows/Clipboard.xml
- Service: .net
- GitHub Login: @dotnet-bot
- Microsoft Alias: dotnetcontent