Image Property

Summary
Gets Leadtools.RasterImage filled with the load image if LoadFileImage is true.
Syntax
C#
C++/CLI
public RasterImage Image { get; } 
public: 
property RasterImage^ Image { 
   RasterImage^ get(); 
} 

Property Value

The Leadtools.RasterImage filled with the load image if LoadFileImage is true.

Example
C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.WinForms.CommonDialogs.File; 
 
 
public void RasterOpenDialogExample2() 
{ 
   RasterCodecs rasterCodecs = new RasterCodecs(); 
 
   RasterOpenDialog openDlg = new RasterOpenDialog(rasterCodecs); 
   openDlg.LoadFileImage = true; 
   openDlg.GenerateThumbnail = true; 
 
   // customize dialog OK button string 
   RasterDialogStrings dialogString = RasterOpenDialog.GetDialogString(RasterDialogStringsId.OpenOk); 
   string oldString = dialogString.Text; 
   dialogString.Text = "Do it!"; 
   Console.WriteLine($"String ID of OK button is: {dialogString.DialogStringId}"); 
   RasterOpenDialog.SetDialogString(dialogString); 
 
   bool restoreOriginalText = false; 
   if (restoreOriginalText) 
   { 
      dialogString.Text = oldString; 
      RasterOpenDialog.SetDialogString(dialogString); 
   } 
   if (DialogResult.OK == openDlg.ShowDialog(null)) 
   { 
      RasterDialogFileData fileDataItem = openDlg.OpenedFileData[0]; 
      RasterImage loadedImage = fileDataItem.Image; 
      RasterImage generatedThumbnail = fileDataItem.Thumbnail; 
      // Do something with the 'loadedImage' and 'generatedThumbnail' images. 
      // ... 
 
      loadedImage.Dispose(); 
      generatedThumbnail.Dispose(); 
 
   } 
} 
Requirements

Target Platforms

Help Version 23.0.2024.7.20
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.WinForms.CommonDialogs.File Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.