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
 Trapping Aborting With 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
w2m Posted - Mar 18 2014 : 10:12:44
What event do you use to trap Aborting with ImageEnMView1.LoadFromFileOnDemand?

I am loading very large multi-frame TIFF file and need to detect if a frame is corrupted.

William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Custom ImageEn Development
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Mar 19 2014 : 21:19:12
Hi Bill

Do you have an image with a corrupted frame like this so I can do some tests.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
w2m Posted - Mar 19 2014 : 11:54:01
Nigel,

How do you do the same thing, but with LoadFromFile and then call
if Aborting then Replace the corrupted frame with an error.png?

Something like this...

try
  ImageEnMView1.MIO.LoadFromFile(AFilePath); {Optional loading method }
except
  if ImageEnMView1.MIO.Aborting then
  begin
    ImageEnMView1.MIO.Params[ImageEnMView1.ImageCount-1].TIFF_ImageIndex := ImageEnMView1.ImageCount-1;
    ImageEnMView1.MIO.LoadFromFile(IncludeTrailingPathDelimiter(ExtractFileDir(Application.ExeName)) + 'error.png');
   end;
end;

William Miller
xequte Posted - Mar 18 2014 : 21:42:47
Hi Bill

OnWrongImage will be called if an image cannot be loaded within an OnDemand sequence.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com