BitMiracle.LibTiff.Classic.Tiff.ClientOpen C# (CSharp) Method

ClientOpen() public static method

Initializes new instance of Tiff class and opens a stream with TIFF data for reading or writing.

This method can be used to read TIFF data from sources other than file. When custom stream class derived from TiffStream is used it is possible to read (or write) TIFF data that reside in memory, database, etc.

Please note, that name is an arbitrary string used as ID for the created Tiff. It's not required to be a file name or anything meaningful at all.

Please read remarks for Open(string, string) method for the list of option flags that can be specified in mode parameter.

public static ClientOpen ( string name, string mode, object clientData, TiffStream stream ) : Tiff
name string The name for the new instance of class.
mode string The open mode. Specifies if the file is to be opened for /// reading ("r"), writing ("w"), or appending ("a") and, optionally, whether to override /// certain default aspects of library operation (see remarks for /// method for the list of the mode flags).
clientData object Some client data. This data is passed as parameter to every /// method of the object specified by the /// parameter.
stream TiffStream An instance of the class to use for /// reading, writing and seeking of TIFF data.
return Tiff
        public static Tiff ClientOpen(string name, string mode, object clientData, TiffStream stream)
        {
            return ClientOpen(name, mode, clientData, stream, null, null);
        }
Tiff