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 reload an image in ImageEnMView
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Pawel

Poland
33 Posts

Posted - May 30 2016 :  08:23:58  Show Profile  Reply
I have an ImageEnMView component (with thumbinals) and an ImageEnVect1 component for view and editing images.
I can edit any image (rotate or crop).
And now, how to reload a thumbinal of image I've edited?

I've tried
ImageEnVect1.IO.SaveToFileJpeg(ImageEnMView1.MIO.Params[ImageEnMView1.SelectedImage].FileName);
ImageEnMView1.MIO.Params[ImageEnMView1.SelectedImage].LoadFromFile(ImageEnMView1.MIO.Params[ImageEnMView1.SelectedImage].FileName);


but it create an error.

w2m

USA
1990 Posts

Posted - May 30 2016 :  09:07:13  Show Profile  Reply
The reason why you get an exception is because you are trying to load MIO.Params, not the image file. To reload the file use ImageEnMview1.MIO.LoadFromFile or just reset the thumbnail to show changes:
ImageEnMView1.SetImage(ImageEnMView1.SelectedImage, ImageEnVect1.Bitmap);
ImageEnMView1.UpdateImage(ImageEnMView1.SelectedImage);
ImageEnMView1.Update;

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: