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
 TImageEnMIO.SaveToFile: Configure file details?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

982 Posts

Posted - Aug 15 2017 :  10:29:57  Show Profile  Reply
When saving to PDF:
• Is it possible to determine the page format?
• Is it possible to determine other PDF metadata such as Author, Title, Subject, Keywords?

When saving to GIF:
• Is it possible to determine the duration of the GIF frames?

w2m

USA
1990 Posts

Posted - Aug 15 2017 :  10:59:36  Show Profile  Reply
The help file is your friend... use it!
See TImageEnIO.Params in the help file

1. procedure TMainForm.FormCreate(Sender: TObject);
var
  a: TIOPDFPaperSize;
begin
  // Fill combobox with available PDF paper sizes
  cmbPaperSize.Clear;
  for a := Low(TIOPDFPaperSize) to iepAuto do
    cmbPaperSize.Items.Add(IEPaperSizeToStr(a));
  // Make "US Letter" the selected one
  cmbPaperSize.ItemIndex := cmbPaperSize.Items.IndexOf(IEPaperSizeToStr(iepLetter));
end;

// Set PDF paper size to user's selection
ImageEnView1.IO.Params.PDF_PaperSize := IEStrToPaperSize(cmbPaperSize.Text);


2. ImageEnView1.IO.Params.GIF_DelayTime := 10; // Set current frame to display for 1/10th of a second
Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

PeterPanino

982 Posts

Posted - Aug 15 2017 :  11:24:39  Show Profile  Reply
Bill, thank you for your answer!

But my question was about MIO.SaveToFile (sorry for having written TImageEn in the question title): With MIO you have to cycle through all the images to set the Params of each and every image.

While this is useful for setting different Params for each image, it is cumbersome for setting identical Params for all images.

So MyMVImages.MIO.Params.GIF_DelayTime := 10; should not cause a compiler error but automatically set this Params to all images. This could be easily achieved with an overload.
Go to Top of Page

xequte

39053 Posts

Posted - Aug 15 2017 :  17:44:40  Show Profile  Reply
Hi Peter

It is not that easy to create a catch-all Params object. We would need to fill it with an amalgamation of all file params whenever read, and when set we would need to iterate through every property to determine what had changed and apply it.

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: