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




stream
A Stream containing the image data to be saved.
compression
A TiffCompressOption Compression type that will be used to save the Tagged Image File Format(TIFF).
selected
Indicates whether to save selected items or all items in the ImageList control. true to save only the selected items; otherwise, false.
Saves ImageList items into a Tagged Image File Format (TIFF) stream.

Syntax

Visual Basic (Declaration) 
Public Sub SaveTiff( _
   ByVal stream As Stream, _
   ByVal compression As TiffCompressOption, _
   ByVal selected As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As ImageList
Dim stream As Stream
Dim compression As TiffCompressOption
Dim selected As Boolean
 
instance.SaveTiff(stream, compression, selected)
C# 
public void SaveTiff( 
   Stream stream,
   TiffCompressOption compression,
   bool selected
)
Managed Extensions for C++ 
public: void SaveTiff( 
   Stream* stream,
   TiffCompressOption compression,
   bool selected
) 
C++/CLI 
public:
void SaveTiff( 
   Stream^ stream,
   TiffCompressOption compression,
   bool selected
) 

Parameters

stream
A Stream containing the image data to be saved.
compression
A TiffCompressOption Compression type that will be used to save the Tagged Image File Format(TIFF).
selected
Indicates whether to save selected items or all items in the ImageList control. true to save only the selected items; otherwise, false.

Example

This example will load an image from an uri

Visual BasicCopy Code
Public Sub ImageList_SaveTiff(ByVal imageList As ImageList)
   imageList.ScrollStyle = ImageListScrollStyle.Horizontal
   Dim stream As FileStream = New FileStream("C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\SaveTiff.tif", FileMode.OpenOrCreate)
   imageList.SaveTiff(stream, TiffCompressOption.Default, False)
   stream.Close()
End Sub
C#Copy Code
public void ImageList_SaveTiff(ImageList imageList) 

   imageList.ScrollStyle = ImageListScrollStyle.Horizontal; 
   FileStream stream = new FileStream(@"C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\SaveTiff.tif", FileMode.OpenOrCreate); 
   imageList.SaveTiff(stream, TiffCompressOption.Default, false); 
   stream.Close(); 
}

Requirements

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

See Also