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
 Saving changes back to ImageEnMView
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

stevep

United Kingdom
4 Posts

Posted - Jun 26 2012 :  02:50:41  Show Profile  Reply
Hi, I use this code to view each page of a tif, but once a page is edited how to i copy changes back to the ImageEnMView so it can be saved ?

ImageEnMView1.CopyToIEBitmap( idx, ImageEnVect1.IEBitmap );
ImageEnVect1.RemoveAllObjects;
ImageEnMView1.MIO.Params[idx].ImagingAnnot.CopyToTImageEnVect(ImageEnVect1);
ImageEnVect1.Update;

Thanks
Steve

fab

1310 Posts

Posted - Jun 26 2012 :  22:05:44  Show Profile  Reply
Supposing the TIFF is loaded using ImageEnMView1.MIO.LoadFromFile (or LoadFromFileTIFF, but not using FillFromDirectory) you could execute:

ImageEnMView1.MIO.Params[idx].ImagingAnnot.CopyFromTImageEnVect(ImageEnVect1);
Go to Top of Page

stevep

United Kingdom
4 Posts

Posted - Jul 26 2012 :  05:51:09  Show Profile  Reply
Thanks, that copies the annotation changes, but it doesn't do the image changes, how do i do that ?
Go to Top of Page

stevep

United Kingdom
4 Posts

Posted - Jul 26 2012 :  06:00:10  Show Profile  Reply
Oh, sorted it using:

ImageEnMView1.SetIEBitmap(ImageEnMView1.SelectedImage,ImageEnVect1.IEBitmap);

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: