Saves ImageList items into a Tagged Image File Format (TIFF) stream.
Syntax
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 Basic | Copy 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