ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How to copy selection to IEBitmap and back
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

mhieta

Finland
78 Posts

Posted - Apr 14 2015 :  13:02:42  Show Profile  Reply
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

xequte

38510 Posts

Posted - Apr 14 2015 :  14:16:57  Show Profile  Reply
Hi Marko

Please see:

http://www.imageen.com/help/TImageEnView.CopySelectionToIEBitmap.html

To copy it back just use:

ImageEnView1.IEBitmap.assign( myIEBitmap );
ImageEnView1.Update;


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

mhieta

Finland
78 Posts

Posted - Apr 15 2015 :  08:41:29  Show Profile  Reply
Hi Nigel,

Thanks for the CopySelectionToIEBitmap.

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?

- Marko
Go to Top of Page

xequte

38510 Posts

Posted - Apr 15 2015 :  15:45:00  Show Profile  Reply
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.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

mhieta

Finland
78 Posts

Posted - Apr 17 2015 :  01:00:06  Show Profile  Reply
Hi Nigel,

That SelPasteFromClip helped me. Thank you for the idea.

- Marko
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: