landrix / The-Drag-and-Drop-Component-Suite-for-Delphi

MIT License
161 stars 57 forks source link

TDropComboTarget; Bitmaps #58

Open Digipit opened 2 years ago

Digipit commented 2 years ago

I'm trying to drop Bitmapsfrom Outlook (Inline Images sent from iPhone) this works well with small images. If the Image is bigger (like 4032*2268) the Bitmap is created in this size, but the left part of the Image gets stretched to then Size of the original bitmap.

Student1978 commented 1 month ago

I have the same/similar problem right now. Is there already a solution here? Affects not only images from Outlook, also large images from Word.

So far I have found out the following: The function TDIBClipboardFormat.DoGetData reads the DIB object from memory and saves/store it in the FBitmap. But I have not yet been able to analyze where exactly the error is. (Perhaps the FBitmap is too small for the large bitmaps)

landrix commented 1 month ago

do you have a sample project, that demonstrate this?

Student1978 commented 1 month ago

I was able to reproduce it with the original ComboTargetDemo.

I will send you a sample via PN

Further: If you copy the image to the clipboard beforehand, the image is then transferred correctly using drag & drop.