Z
Z
Zakharov Alexander2016-10-18 15:28:18
Programming
Zakharov Alexander, 2016-10-18 15:28:18

C# Clipboard getting data in DeviceIndependantBitmap format causes Access Violation?

Hello.
I am writing a clipboard handler. There are conditions by which I check what type of data I can take from the buffer. If a buffer can provide me with a DeviceIndependentBitmap, then please give it to me. Bitmaps are ok. But when copying an SVG image from a vector editor such as Inkscape, an AccessViolation exception occurs when trying to get this image as a DeviceIndependentBitmap, although the check says that the clipboard can provide me with such data (click on the image to
view in a separate window ):
de1628d347b6429584dd52bc53feaadc.png
wtf??? Why does the clipboard say that it can provide me with data in the required format, but upon request in this format it fails with an exception ??? It is desirable, of course, to find out how to read such data from the buffer correctly?
PS
The moment the exception occurs, the clipboard offers me the following formats: "image/x-inkscape-svg, image/svg+xml, image/x-inkscape-svg-compressed, image/svg+xml-compressed, application/pdf , PNG, DeviceIndependentBitmap, System.Drawing.Bitmap, Bitmap, Format17, EnhancedMetafile, MetaFilePict"

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question