LEADTOOLS WPF and Silverlight (Leadtools.Windows.Controls assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
SaveTiff Method
See Also 
Leadtools.Windows.Controls Namespace > ImageList Class : SaveTiff Method



stream
Output stream to save the multi-page TIFF image to.
compression
Compression options.
selected
If true, only saves the selected items. Otherwise, save all items.
stream
Output stream to save the multi-page TIFF image to.
compression
Compression options.
selected
If true, only saves the selected items. Otherwise, save all items.
Saves the images of the items of this control as a multi-page TIFF image.

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
)
C++/CLI 
public:
void SaveTiff( 
   Stream^ stream,
   TiffCompressOption compression,
   bool selected
) 

Parameters

stream
Output stream to save the multi-page TIFF image to.
compression
Compression options.
selected
If true, only saves the selected items. Otherwise, save all items.

Example

Visual BasicCopy Code
Public Sub ImageList_SaveTiff(ByVal imageList As ImageList)
      imageList.Orientation = Orientation.Horizontal
      Dim stream As FileStream = New FileStream(Path.Combine(LEAD_VARS.ImagesDir, "SaveTiff.tif"), FileMode.OpenOrCreate)
      imageList.SaveTiff(stream, TiffCompressOption.Default, False)
      stream.Close()
   End Sub

Public NotInheritable Class LEAD_VARS
   Public Const ImagesDir As String = "C:\Users\Public\Documents\LEADTOOLS Images"
End Class
C#Copy Code
public void ImageList_SaveTiff(ImageList imageList)
   {
      imageList.Orientation = Orientation.Horizontal;
      FileStream stream = new FileStream(Path.Combine(LEAD_VARS.ImagesDir, "SaveTiff.tif"), FileMode.OpenOrCreate);
      imageList.SaveTiff(stream, TiffCompressOption.Default, false);
      stream.Close();
   }

static class LEAD_VARS
{
   public const string ImagesDir = @"C:\Users\Public\Documents\LEADTOOLS Images";
}
SilverlightCSharpCopy Code
SilverlightVBCopy Code

Remarks

This method will create a multi-page TIFF image where each page represents an item in this control.

Requirements

Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also