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
 Image update from ImageEnView to ImageEnMView
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Vish

India
7 Posts

Posted - May 17 2020 :  08:18:26  Show Profile  Reply
I am loading an image from ImageEnMView to ImageEnview. Then editing image like crop. After changes are reflected in ImageEnView bit not in ImageEnMView.
How can this be done.

xequte

5227 Posts

Posted - May 17 2020 :  16:44:43  Show Profile  Reply
Hi Vish

There are a number of options here depending on your usage, for example, does the TImageEnMView contain the contents of a multi-frame image, like a GIF, or are you showing images from a folder.

For a multi-frame image, you should update the bitmap you have changed, and then later save the TImageEnMView back to file.

ImageEnMView1.SetImage( idx , ImageEnView1.IEBitmap);

https://www.imageen.com/help/ImageEn/TImageEnMView.SetImage.html


If you are just editing images in a folder, then after editing the image, save it back to file and refresh the thumbnail:

https://www.imageen.com/help/ImageEn/TImageEnMView.UpdateImage.html


Let us know about your usage, if you want more detailed advice.


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Vish

India
7 Posts

Posted - May 18 2020 :  06:21:50  Show Profile  Reply
Hi Nigel

I am doing following things

1. Loading the image from
ImageEnMView1.InsertImage(ImageEnMView1.SelectedImage, filename);

2. On select event of ImageEnMView
ImageEnView1.ClearAll();
// Copy image
ImageEnMView1.CopyToIEBitmap( idx, ImageEnView1.IEBitmap );

ImageEnView1.Update;

3. On Crop Apply
ImageEnView1.CropTool.Enact();
ImageEnView1.MouseInteractGeneral := [];

ImageEnMView can get an image from folder or from scanner

Thanks
Vish
Go to Top of Page

xequte

5227 Posts

Posted - May 18 2020 :  18:14:32  Show Profile  Reply
Hi Vish

In that situation, call SetImage after step 3 to update the image in TImageEnMView

ImageEnView1.CropTool.Enact();
ImageEnView1.MouseInteractGeneral := [];
ImageEnMView1.SetImage( idx , ImageEnView1.IEBitmap);

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Vish

India
7 Posts

Posted - May 19 2020 :  03:18:17  Show Profile  Reply
Thanks, It woked
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To: