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
 SaveToFileTiff SelectedImage
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

izaque

Brazil
95 Posts

Posted - Apr 23 2012 :  07:54:15  Show Profile  Reply
Hello, I do not know if it's a bug, but when I use "ImageEnMView1.MIO.SaveToFileTIFF ('C: \ Tmp \ img00001.tiff', true);" is not saving the image correctly. The size is 0 KB. The version is ImageEn 4.1.0

ImageEnMView1.SelectedImage: = 0;
ImageEnMView1.MIO.SaveToFileTIFF ('C: \ Tmp \ img00001.tiff', true);

izaque

Brazil
95 Posts

Posted - Apr 23 2012 :  09:47:37  Show Profile  Reply
Up?
Go to Top of Page

fab

1310 Posts

Posted - Apr 23 2012 :  09:55:25  Show Profile  Reply
Hello,
the right code is:

  ImageEnMView1.EnableMultiSelect := true;  // if not already set at design-time
  ImageEnMView1.MultiSelecting := true;
  ImageEnMView1.SelectedImage := 0;
  ImageEnMView1.MultiSelecting := false;
  ImageEnMView1.MIO.SaveToFileTIFF('test.tif', true);


Anyway, if you want to save a single page just execute:

ImageEnMView1.GetImageToFile(0, 'test.tif');

quote:
Up?


A reply could require up to 48 hours to be processed.
Go to Top of Page

izaque

Brazil
95 Posts

Posted - Apr 23 2012 :  10:34:26  Show Profile  Reply
Thanks Fabrizio. It worked wonderfully!

" A reply could require up to 48 hours to be processed. "

I'm sorry, I thought the topic had already been closed, so I said "up".
The topic was not in the "Active Topics".

One more question:
The "ImageEnView1.TImageEnProc.SeparateObjects" work in resolution images, 300 dpi? The "SeparateObjects" is magnificent!

Go to Top of Page

fab

1310 Posts

Posted - Apr 23 2012 :  11:15:16  Show Profile  Reply
quote:
The "ImageEnView1.TImageEnProc.SeparateObjects" work in resolution images, 300 dpi? The "SeparateObjects" is magnificent!


SeparateObjects is not dependent by image resolution, so it should work. Of course it may require more time processing large images.
Go to Top of Page

izaque

Brazil
95 Posts

Posted - Apr 23 2012 :  11:17:51  Show Profile  Reply
Thank you!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: