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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How to copy selection to IEBitmap and back

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
mhieta Posted - Apr 15 2015 : 08:41:29
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
xequte Posted - Apr 14 2015 : 14:16:57
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