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



uri
A Uri containing the image data to load.
Loads a Tagged Image File Format (TIFF) image file.

Syntax

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

Parameters

uri
A Uri containing the image data to load.

Example

This example will load an image from a uri

Visual BasicCopy Code
Public Sub ImageList_LoadTiff(ByVal imageList As ImageList)
    imageList.ScrollStyle = ImageListScrollStyle.Horizontal
    ' Append the new item to the image list control
    Dim imageFileName As String = LeadtoolsExamples.Common.ImagesPath.Path + "ImageProcessingDemo\Image4.tif"

    ' Make sure this new item is visible to the user
    imageList.LoadTiff(New Uri(imageFileName))
End Sub
C#Copy Code
public void ImageList_LoadTiff(ImageList imageList) 

   imageList.ScrollStyle = ImageListScrollStyle.Horizontal; 
   // Append the new item to the image list control 
   string imageFileName = LeadtoolsExamples.Common.ImagesPath.Path + @"ImageProcessingDemo\Image4.tif"; 
 
   // Make sure this new item is visible to the user 
   imageList.LoadTiff(new Uri(imageFileName)); 
}

Remarks

The stream can point to any supported Tagged Image File Format (TIFF).

This method will load all the pages into ImageList items.

Requirements

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

See Also