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 replace the default image when TImageEnMView has no loaded images
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Flashcqxg

131 Posts

Posted - Aug 30 2025 :  00:18:33  Show Profile  Reply
My code is as follows:

for I := 1 to 10 do
begin
index := ImageEnMView1.AppendImage;
ImageEnMView1.ImageFileName[index] := I.ToString;
end;

At this point, ImageEnMView has not loaded any images. After running, the default display is the same image. Can I replace it with my own default image?



xequte

39133 Posts

Posted - Aug 30 2025 :  21:19:41  Show Profile  Reply
Yes, you can supply a new image in the OnWrongImage event:

http://www.imageen.com/help/TImageEnMView.OnWrongImage.html

Use an image that is stored in memory so as not to affect performance.

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

Flashcqxg

131 Posts

Posted - Aug 31 2025 :  08:55:10  Show Profile  Reply
Thanks.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: