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
 TImageEnMIO.SaveToFile: Configure file details?

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
PeterPanino Posted - Aug 15 2017 : 10:29:57
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?
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Aug 15 2017 : 17:44:40
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
PeterPanino Posted - Aug 15 2017 : 11:24:39
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.
w2m Posted - Aug 15 2017 : 10:59:36
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