API:Vcl.ExtDlgs.TSavePictureDialog

From RAD Studio API Documentation
Jump to: navigation, search

Vcl.ExtDlgs.TOpenPictureDialogVcl.Dialogs.TOpenDialogVcl.Dialogs.TCommonDialogSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTSavePictureDialog

Delphi

TSavePictureDialog = class(TOpenPictureDialog)

C++

class PASCALIMPLEMENTATION TSavePictureDialog : public TOpenPictureDialog

Properties

Type Visibility Source Unit Parent
class public
Vcl.ExtDlgs.pas
Vcl.ExtDlgs.hpp
Vcl.ExtDlgs Vcl.ExtDlgs

Description

TOpenPictureDialog displays a graphics-file selection dialog.

Vcl.ExtDlgs.TSavePictureDialog inherits from Vcl.ExtDlgs.TOpenPictureDialog. All content below this line refers to Vcl.ExtDlgs.TOpenPictureDialog.

TOpenPictureDialog displays a graphics-file selection dialog.

TOpenPictureDialog displays a modal Windows dialog box for selecting and opening graphics files. This component is just like TOpenDialog, except that it includes a rectangular preview region. If the selected image can be read by TPicture, it is displayed in the preview region.

TOpenPictureDialog supports the following file types: bitmap (.BMP), icon (.ICO), Windows metafile (.WMF), enhanced Windows metafile (.EMF), .JPEG, .TIF, and .TIFF.
To include JPG, PNG, GIF file formats, add corresponding units—Vcl.Imaging.GIFImg, Vcl.Imaging.jpeg, or Vcl.Imaging.pngimage—into uses clause.

All file mask is added if there are two or more extensions.

  • If the selected image cannot be displayed, "(None)" appears in the preview region.
  • If the user selects a file of an unrecognized type, TPicture raises an EInvalidGraphic exception.

See Also

Code Examples