←Select platform

NewImageSize Property

Summary
Gets or sets a value that specifies an estimate of the amount of space a new image would take up, based on image layout, resolution and compression.

Syntax
C#
C++/CLI
Python
public int NewImageSize { get; set; } 
public: 
property int NewImageSize { 
   int get(); 
   void set (    int ); 
} 
NewImageSize # get and set (TwainFileSystem) 

Property Value

An integer that represents an estimate of the amount of space a new image would take up, based on image layout, resolution and compression.

Example
C#
using Leadtools; 
using Leadtools.Twain; 
 
 
public void QueryFileSystemExample(IntPtr parent) 
{ 
   TwainSession session = new TwainSession(); 
   TwainFileSystem fileSystem = new TwainFileSystem(); 
   string msg; 
 
   try 
   { 
      session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None); 
      session.QueryFileSystem(fileSystem, TwainFileSystemMessage.AutomaticCaptureDirectory); 
 
      msg = String.Format(@"Input Name = {0}\nOutput Name = {1}\nRecursive = {2}\nFileType = {3}\nFileSize = {4}\nCreateTimeDate = {5}\nModifiedTimeDate = {6}\nFreeMediaSpace = {7}\nNewImageSize = {8}\nNumberOfFiles 
            = {9}\nNumberOfAudioSnippets = {10}\nDeviceGroupMask = {11}\n", 
         fileSystem.InputName, 
         fileSystem.OutputName, 
         fileSystem.Recursive, 
         // I changed the following line from "fileSystem.FileType" to "fileSystem.FileFormat" 
         fileSystem.FileFormat, 
         fileSystem.FileSize, 
         fileSystem.CreateTimeDate, 
         fileSystem.ModifiedTimeDate, 
         fileSystem.FreeSpace, 
         fileSystem.NewImageSize, 
         fileSystem.NumberOfFiles, 
         fileSystem.NumberOfAudioSnippets, 
         fileSystem.DeviceGroupMask); 
 
      MessageBox.Show(msg); 
   } 
   catch (Exception ex) 
   { 
      MessageBox.Show(ex.Message); 
   } 
   finally 
   { 
      session.Shutdown(); 
   } 
} 
Requirements

Target Platforms

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

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