Leadtools.Windows.Controls Send comments on this topic. | Back to Introduction - LEADTOOLS WPF | Help Version 16.5.9.25
LoadTiff(Stream) Method
See Also  Example
Leadtools.Windows.Controls Namespace > ImageList Class > LoadTiff Method : LoadTiff(Stream) Method



stream
The Stream containing the input image data.
Loads a Tagged Image File Format (TIFF) image stream.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub LoadTiff( _
   ByVal stream As Stream _
) 
Visual Basic (Usage)Copy Code
Dim instance As ImageList
Dim stream As Stream
 
instance.LoadTiff(stream)
C# 
public void LoadTiff( 
   Stream stream
)
C++/CLI 
public:
void LoadTiff( 
   Stream^ stream
) 

Parameters

stream
The Stream containing the input image data.

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 = LeadtoolsExamples.Common.ImagesPath.Path + "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 = LeadtoolsExamples.Common.ImagesPath.Path + @"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