Skip to content

Unknown_Formats retruned by Clipboard.GetFormatsAsync() on Windows #19118

Open
@flabbet

Description

@flabbet

Describe the bug

Trying to paste screenshot from clipboard taken with Lighshot. Using Clipboard.GetFormatsAsync() returns these 3 formats:

Unknown_Format_2
Unknown_Format_8
Unknown_Format_17

I inspected raw clipboard data with https://www.nirsoft.net/utils/inside_clipboard.html, it displays these formats

Image

To Reproduce

  1. Download screenshotting app Lighshot
  2. Hit print screen and select an area
  3. Hit Ctrl+C or use the copy button in the bottom right corner. The selected area of the screen is screenshotted and copied to clipboard
  4. Call Avalonia's Clipboard.GetFormatsAsync()
  5. Inspect returned formats

Expected behavior

Formats returned should match

CF_BITMAP
CF_DIB
CF_DIBV5

Avalonia version

11.3.0

OS

Windows

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions