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
 Loading a TImageEnView from a TImageEnView
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

paulcoshott

Australia
2 Posts

Posted - Sep 04 2013 :  03:00:35  Show Profile  Reply
Hi All,

I have a TImageEnView that is being used to modify an image, especially cropping. On this form I have a resize button that pops up a resize dialog that also contains a TImageEnView.

How can I load the modified image from the parent form into the resize dialog's TImageEnView?


Cheers,
Paul

xequte

39064 Posts

Posted - Sep 04 2013 :  03:24:47  Show Profile  Reply
Hi Paul

You can use SetExternalBitmap for two ImageEnViews to have the same image:

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

Or you can simply assign the bitmap (assumes ImageEnView1.LegacyBitmap=False):

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


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

w2m

USA
1990 Posts

Posted - Sep 04 2013 :  09:02:05  Show Profile  Reply
You can also just assign a ImageEnView to another:
MySubDialog.ImageEnView1.Assign(ImageEnView1);
MySubDialog.ImageEnView1.Update;

William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Go to Top of Page

paulcoshott

Australia
2 Posts

Posted - Sep 04 2013 :  17:27:40  Show Profile  Reply
Thanks guys, the Assign worked perfectly.


Cheers,
Paul
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: