It would be very useful to have a wxSVGDataObject
class.
At the moment, in order to copy an SVG image to the clipboard, I create a temporary SVG file using wxSVGFileDC
, then load its contents into a wx.CustomDataObject("image/svg+xml")
.
I'm not sure if a more efficient or direct solution already exists, but having a dedicated class would simplify this use case.
Thank you for considering this!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
I'm not sure if there is a standard clipboard format for SVG under Windows and macOS, but I think we could still add such type using image/svg+xml
MIME type under Linux (where I think it is standard) and hope the other platforms follow. This should be quite simple to do, so if you (or anybody else) would like to do it, please make PRs adding this. TIA!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.