Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
mhieta
Posted - Apr 14 2015 : 13:02:42 Hi,
I'm using 5.2.0.
How can I copy selection from ImageEnView to IEBitmap and how I can copy that IEBitmap back to that original selection from ImageEnView with retaining dimensions and aspect ratio?.
- Marko
4 L A T E S T R E P L I E S (Newest First)
mhieta
Posted - Apr 17 2015 : 01:00:06 Hi Nigel,
That SelPasteFromClip helped me. Thank you for the idea.
- Marko
xequte
Posted - Apr 15 2015 : 15:45:00 Hi Marko
Off the top of my head, I can't think how you can automatically assign a bitmap to a selection without using the clipboard (TImageEnProc.SelPasteFromClip).
At any rate you can get the selection rect and then StretchDraw the image onto the ImageEnView1.IEBitmap.
But that IEBitmap.assign replaces whole image. I need something like IEBitmapCopyToSelection function. Anyway I'm copying selection to IEBitmap now and then doing some changes to that IEBitmap image and then I want to copy that changed image back to that original selection. Is that possible?