if anyone knows how to take a screenshot of a window in SDL from C#, please tell me how. or like, how to get an error message that isn't "Failed to convert and save image", or a random crash in native code that tells me less than nothing

// the deer!
// plural deer therian θΔ, trans demigirl
// stray pet with a keyboard
// i'm 20 & account is 18+!
name-color: #ebe41e
// yeah
if anyone knows how to take a screenshot of a window in SDL from C#, please tell me how. or like, how to get an error message that isn't "Failed to convert and save image", or a random crash in native code that tells me less than nothing