Leadtools.Windows.Controls Namespace > ImageList Class : SaveTiff Method |
public void SaveTiff( Stream stream, TiffCompressOption compression, bool selected )
'Declaration Public Sub SaveTiff( _ ByVal stream As Stream, _ ByVal compression As TiffCompressOption, _ ByVal selected As Boolean _ )
'Usage Dim instance As ImageList Dim stream As Stream Dim compression As TiffCompressOption Dim selected As Boolean instance.SaveTiff(stream, compression, selected)
public void SaveTiff( Stream stream, TiffCompressOption compression, bool selected )
function Leadtools.Windows.Controls.ImageList.SaveTiff( stream , compression , selected )
public: void SaveTiff( Stream^ stream, TiffCompressOption compression, bool selected )
This method will create a multi-page TIFF image where each page represents an item in this control.
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
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"; }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2