Beispiel #1
0
 private void QueryButton_Click(object sender, System.EventArgs e)
 {
     try
     {
         Accusoft.ImagXpressSdk.ImageXData data = Accusoft.ImagXpressSdk.ImageX.QueryFile(imagXpress1, filename);
         AppendFileInfo(data);
     }
     catch (Accusoft.ImagXpressSdk.ImagXpressException ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Beispiel #2
0
 private void AppendFileInfo(Accusoft.ImagXpressSdk.ImageXData data)
 {
     ResultsListBox.Items.Clear();
     ResultsListBox.Items.Add("Filename: " + filename);
     ResultsListBox.Items.Add("Width: " + data.Width);
     ResultsListBox.Items.Add("Height: " + data.Height);
     ResultsListBox.Items.Add("Bits Per Pixel: " + data.BitsPerPixel);
     ResultsListBox.Items.Add("Format: " + data.Format);
     ResultsListBox.Items.Add("FileSize: " + data.Size);
     ResultsListBox.Items.Add("Resolution Units: " + data.Resolution.Units);
     ResultsListBox.Items.Add("X Resolution: " + data.Resolution.Dimensions.Width);
     ResultsListBox.Items.Add("Y Resolution: " + data.Resolution.Dimensions.Height);
 }