T O P I C R E V I E W |
Vish |
Posted - May 17 2020 : 08:18:26 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. |
4 L A T E S T R E P L I E S (Newest First) |
Vish |
Posted - May 19 2020 : 03:18:17 Thanks, It woked |
xequte |
Posted - May 18 2020 : 18:14:32 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
|
Vish |
Posted - May 18 2020 : 06:21:50 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 |
xequte |
Posted - May 17 2020 : 16:44:43 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/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/TImageEnMView.UpdateImage.html
Let us know about your usage, if you want more detailed advice.
Nigel Xequte Software www.imageen.com |
|
|