TIEImageLayer.ExecuteOpenDialog
Declaration
function ExecuteOpenDialog(): Boolean;
Description
Displays an open image dialog (using
ExecuteOpenDialog) to allow the user to browse for an image. It is applied to the current layer.
Note: You can access the filename via
Bitmap.Filename
if ImageEnView1.CurrentLayer is TIEImageLayer then
TIEImageLayer( ImageEnView1.CurrentLayer ).ExecuteOpenDialog();
// Prompt user to load new image into current image layer and log the result
if TIEImageLayer( ImageEnView1.CurrentLayer ).ExecuteOpenDialog() then
AddToLog( format( 'Loaded image into layer %d: %s', [ ImageEnView1.LayersCurrent, TIEImageLayer( ImageEnView1.CurrentLayer ).Bitmap.Filename ]));