ImageEn, unit ieopensavedlg

TOpenImageEnDialog


Declaration

TOpenImageEnDialog = class(TIECommonDialog);


Description

Displays a modal Windows dialog box for selecting and opening image files. It includes all properties, methods and events of the standard TOpenDialog. It also includes a preview window which displays all ImageEn supported file formats. If the file is an animated GIF, AVI video or a multi page TIFF, all images will be shown in sequence: the "Play" button will be activated to animate the sequence.

Image information is also shown, including dimensions, colors, file type, compression and file size




For more modern styled dialogs, enable ModernDialog (Also see UseWindowsOpenSaveDialogs):




Notes:
- You can also display an Open dialog for a TImageEnView just by calling ExecuteOpenDialog or for a TImageEnMView by calling ExecuteOpenDialog
- A standard windows dialog will be used if the active screen uses scaling, i.e. display is not 100% (the same as setting ModernDialog to true)


Examples

// Browse for an image in the My Pictures folder and display it in an ImageEnView
OpenImageEnDialog1.InitialDir := WindowsMyPicturesFolder();
If OpenImageEnDialog1.Execute then
  ImageEnView1.LoadFromFile( OpenImageEnDialog1.FileName );

// Prompt to insert multiple images into a TImageEnMView
OpenImageEnDialog1.Options := OpenImageEnDialog1.Options + [ofAllowMultiSelect];
if OpenImageEnDialog1.Execute then
  ImageEnMView1.FillFromList( OpenImageEnDialog1.Files );


Methods and Properties

Published Property  AlwaysAnimate
Published Property  AutoAdjustDPI
Published Property  AutoSetFilter
Published Property  AutoSetFilterFileType
Public Method  Execute
Published Property  ExtendedDialog
Published Property  ExtendedFilters
Published Property  FileName
Public Property  Files
Published Property  FileView
Published Property  Filter
Published Property  FilteredAdjustDPI
Published Property  FilterDefault
Published Property  FilterIndex
Published Property  GetExifThumbnail
Public Property  InfoPanel
Published Property  ModernDialog
Published Property  Options
Public Property  PicturePanel
Published Property  PreviewBorderStyle
Published Property  PreviewSize
Public Property  SelectedFrame
Published Property  ShowAllFrames
Published Property  ShowFormats
Published Property  ShowPlacesBar
Published Property  ZoomFilter


Events

Event  OnCreateCustomControls
Event  OnDestroyCustomControls
Event  OnPreviewFile


See Also

- TOpenDialog
- TSaveImageEnDialog