Leadtools.Windows.Controls Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.03.25
LoadTiff Method
See Also  Example
Leadtools.Windows.Controls Namespace > ImageList Class : LoadTiff Method




Loads a Tagged Image File Format (TIFF) image stream.

Overload List

OverloadDescription
LoadTiff(Stream) Loads a Tagged Image File Format (TIFF) image stream.  
LoadTiff(Uri) Loads a Tagged Image File Format (TIFF) image file.  

Example

This example will load an image from an uri

Visual BasicCopy Code
Public Sub ImageList_LoadTiff2(ByVal imageList As ImageList)
   imageList.ScrollStyle = ImageListScrollStyle.Horizontal
   ' Append the new items to the image list control
   Dim imageFileName As String = "C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\ImageProcessingDemo\Image4.tif"
   Dim stream As FileStream = New FileStream(imageFileName, FileMode.Open, FileAccess.Read, FileShare.Read)

   imageList.LoadTiff(stream)
End Sub
C#Copy Code
public void ImageList_LoadTiff2(ImageList imageList) 

   imageList.ScrollStyle = ImageListScrollStyle.Horizontal; 
   // Append the new items to the image list control 
   string imageFileName = @"C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\ImageProcessingDemo\Image4.tif"; 
   FileStream stream = new FileStream(imageFileName, FileMode.Open, FileAccess.Read, FileShare.Read); 
 
   imageList.LoadTiff(stream); 
}

Remarks

This method will load all the pages in a multipage file into image list items. The resulting items will have the same bits per pixel and color order value as the image as it was stored in the file.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family

See Also