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 reload an image in ImageEnMView

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
Pawel Posted - May 30 2016 : 08:23:58
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.
1   L A T E S T    R E P L I E S    (Newest First)
w2m Posted - May 30 2016 : 09:07:13
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