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
 save imageenmview
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

TiagoMelo

Brazil
5 Posts

Posted - Feb 19 2015 :  15:00:52  Show Profile  Reply
hello
how can I save a imageenmview with multiple tif images to a single bmp file?

xequte

38611 Posts

Posted - Feb 19 2015 :  15:12:22  Show Profile  Reply
Hi

BMP format only supports one frame, so do you want to save each TIFF frame to a separate BMP file?

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

TiagoMelo

Brazil
5 Posts

Posted - Feb 19 2015 :  18:51:38  Show Profile  Reply
hello , I need all the images on imaenmview in a single image file bmp , how could I achieve this?
I managed to export all to pdf . I would have some form of import that pdf and bmp generate my starting it using imageen ?
Go to Top of Page

xequte

38611 Posts

Posted - Feb 20 2015 :  01:40:54  Show Profile  Reply
So, for example, if you have ten images in a TImageEnMView, then it will create a BMP with a single image containing all your ten images? Is that what you mean?


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

TiagoMelo

Brazil
5 Posts

Posted - Feb 20 2015 :  05:24:35  Show Profile  Reply
exactly , is this possible ?
Go to Top of Page

xequte

38611 Posts

Posted - Feb 20 2015 :  21:55:41  Show Profile  Reply
Sure, the process woudl be something like:

1. Get the output size

Iterate through all the items in the TImageEnMView, adding up the ImageHeight values and getting the max ImageWidth value

2. Create a destination TIEBitmap of Max ImageWidth x Total of ImageHeights

3. Create a temp TIEBitmap

4. Iterate through all the items in the TImageEnMView, using CopyToIEBitmap to copy to your temp TIEBitmap:

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

Then use DrawToTIEBitmap to output our temp TIEBitmap to our destination TIEBitmap:

http://www.imageen.com/help/TIEBitmap.DrawToTIEBitmap.html

5. Save your destination TIEBitmap

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: